Delete a media asset and its R2 object. Requires a private API key.
cURL
curl --request DELETE \ --url https://api.marblecms.com/v1/media/{id} \ --header 'Authorization: <api-key>'
{ "id": "cryitfjp5678mn09qrstuvwx" }
Documentation IndexFetch the complete documentation index at: https://docs.marblecms.com/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.marblecms.com/llms.txt
Use this file to discover all available pages before exploring further.
Your Marble API key
Media asset ID
"cryitfjp1234jl04vdnycek8"
Media asset deleted successfully
"cryitfjp5678mn09qrstuvwx"
Was this page helpful?