Delete a video

Delete a video with the Wavegrain Posting API: DELETE /api/v1/media/{id}. Parameters, responses and an example request.

DELETE /api/v1/media/{id} is part of the Posting API. Every call needs an access key: see Authentication.

Needs the write permission. Stops a video upload, or deletes a video and its file. Refused while a post that waits or has not been sent yet uses it. Images are kept in your Wavegrain images.

Parameters

NameInTypeRequiredNotes
idpathstringyes

Example request

curl -X DELETE https://wavegrain.com/api/v1/media/ID \
  -H "Authorization: Bearer $WAVEGRAIN_KEY"

Responses

StatusMeaning
200Deleted.
401No access key, or an unknown, revoked or expired one
403The key lacks the permission, or the account has no active plan
404No such video, or not yours.
409A post still uses the video.
429Too many requests for the key or the account
500Something went wrong on Wavegrain's side; try again, and send the request id if it keeps failing.

A successful answer:

{
  "id": "video_Pq3Lx9",
  "deleted": true
}

More in the Posting API

Something wrong or missing? Write to support@wavegrain.com.