Skip to main content

Disconnect a surface's storage

DELETE 

/program/api/v2/storage/features/:surface

Removes the project's storage setting for the surface, so the feature stops reading and writing files, and nothing is deleted: for byo the connection and the customer's bucket are untouched; for managed the project's Native Frame bucket keeps every file, the surface shows in the admin "files left behind" report, and choosing managed again picks the same files back up. For archive this also clears the legacy archiving config, so it does the same as deleting that config did.

Idempotent: a surface with no storage setting answers 204. The switch history records the disconnect.

Refused while the surface cannot be left cleanly:

  • 409 storage_migration_in_progress — assets is being moved to the customer's bucket; wait for the move to finish, or save the managed setting again to stop it.
  • 409 storage_provisioning_in_progress — managed storage is still being set up; retry shortly.
  • 410 storage_tearing_down — managed storage is being removed.
Generate JWT

Request​

Responses​

The surface's storage setting is gone (or was never there)

Forbidden — no project access

Conflict — storage_migration_in_progress, or storage_provisioning_in_progress (retry shortly).

Gone — storage_tearing_down: managed storage is being removed for this project.

Internal Server Error