FerryDocs

Delete a referenced target

Ferry refuses to delete a datastore or a service that other services reference.

Edit on GitHub
DELETE /api/v1/datastores/app-db → 409
{
  "error": {
    "code": "conflict",
    "message": "datastore 'app-db' is referenced by service 'hello' (DATABASE_URL, EXT, PGHOST); they would fail to deploy or restart without it. Remove the references first, or delete with force=true"
  }
}

If you delete the target of a , the next deploys of the services that use it fail. Thus Ferry refuses with a 409. The message lists the services and their variables, for example datastore 'app-db' is referenced by service 'hello' (DATABASE_URL, PGHOST).

What to do

InterfaceDo this
Each interfaceRemove the references first.
CLIOr add --force.
APIOr add force=true.

After a forced delete

The services that reference the deleted target fail at their next deploy or restart.

On this page