Media
Delete a media file
Delete a file from the media library and from the posts that hold it.
DELETE
Delete a media file
Needs
media:delete, and a role in the workspace that can delete media. See Permissions.422, and its message names up to 3 of those posts. Let them publish first, or take the file off them, then delete it. A file still being made (is_processing) isn’t deleted either; if it fails to generate, it goes on its own.
Errors
Related
- Update a post: take the file off a post first.
- List media: the library.
Authorizations
Response
The file was deleted.
An error answer. Every one has message, in plain words; some add an error code and fields of their own.
A code a few errors add, such as rate_limited. See Handle errors.