How to properly delete snapshot using api

hi everyone,
i would like to delete some snapshot using the api, when i use it, everything seems to work, i have the confirmation message, but the snapshots are not deleted, even days after i did it.
here is my script :
curl -X GET -H "Content-Type: application/json" http://admin:admin@localhost:3000/api/snapshots-delete/***********
and i have the success message :
{"message":"Snapshot deleted. It might take an hour before it's cleared from a CDN cache."}
and don’t understand, maybe i’ve missed Something.
if you have any idea, i would really appreciate!

ps : i’m not using CDN


Please note that you need to provide the delete key as key and not the id of the snapshot, i.e.

curl -X GET -H "Content-Type: application/json" http://admin:admin@localhost:3000/api/snapshots-delete/<delete key>

Are you using the delete key?

See documentation for details. Maybe the documentation is a bit vague regarding deleting snapshots, but it says the following for creating snapshots:

deleteKey - Optional. Unique key used to delete the snapshot. It is different from the key so that only the creator can delete the snapshot. Required if external is true.

We should probable make the documentation a bit clearer.



I was trying to delete a snapshot but I do not see delete key anywhere in the json for snapshot. How do I get the delete key ?

Also can I delete all snapshots at once (may be as admin) using API?