Snapvisor Docs

Delete a media

Delete a media and the files behind it. Any share link or pull request embed pointing at it stops working immediately. Use it when the user asks to remove an uploaded image or video permanently.

DELETE
/media/{mediaId}

Delete a media and the files behind it. Any share link or pull request embed pointing at it stops working immediately. Use it when the user asks to remove an uploaded image or video permanently.

Authorization

AuthorizationBearer <token>

Authenticate as a project with a project token.

Send it as a bearer token in the Authorization header:

Authorization: Bearer <project-token>

You can find your project token in your Snapvisor project settings. Project tokens are used by CI and the SDK to create builds and deployments.

In: header

Path Parameters

mediaId*string

The media ID

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/media/string"
Empty