To restore deleted assets using the Cloudinary CLI, you must have automatic backups enabled. This is a feature that stores an extra copy of your original assets either with Cloudinary or in an external storage bucket - this latter option helps you save on storage quotas.
The command to restore deleted assets using the CLI is as follows:
cld admin restore (public_ids)
If you have automatic backups enabled and you'd like to see your deleted assets that are available for restoration and/or go ahead and restore them via the Media Library view, you can navigate to your assets view and click "Add more" in the search filters, and select "Delivery types".
Scroll all the way to the bottom of the "Delivery types" dropdown that appears, and you'll see "Deleted asset" as an option.
You can also recover assets deleted, whether via bulk delete or otherwise, by submitting a support ticket at https://support.cloudinary.com/hc/en-us/requests/new , however there are no guarantees that deleted assets can definitely be recovered, especially if some time has passed. Because of this, having backups enabled is a safer option.
More information on our CLI can be found in the Cloudinary CLI documentation page.
More information on the underlying restore
API method can be found in the Admin API documentation page.
More information on backups and version management can be found in the corresponding documentation page.
Comments
0 comments
Please sign in to leave a comment.