Guides

Delete

API to delete an asset or it's conversions. Deleting the original is a soft-delete within FileSpin. It will mark Asset as deleted and hide it from view (See Purge API to completely purge an Asset). Asset administrators can retrieve deleted Assets using Search API by setting trashed option to true. Unknown custom keys and keys that do not apply to the file type will be ignored

🚧

If an original is deleted, all it's conversions will be deleted. If a deleted original is restored, conversions that are enabled in the profile will be re-created.

Request JSON Parameters

KeyValueDescription
keysJSONList of conversion keys. See below for Keys that you can specify
Asset/Key typekeys list values
ImageBuilt-in keys such as "deepzoom" and/or all the custom conversion keys setup in account settings
VideoBuilt-in keys such as "480p-video", "480p-wm-video", "hls-video", "storyboard", etc
OriginalTo delete the original asset, use the key “original”. Note this will delete and purge all conversions from storage
AddonAddon key defined by the addons deployed
All ConversionsUse the special key * to delete all conversions

Webhook callback on delete completion

Once the delete request is completed, callback is issued to configured Webhook.

Please see Tools & Integration- > Webhooks section for file-deleted event callback to learn about the callback JSON structure.

HTTP Response

Standard HTTP Status code - 202 or 200

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!