Home
Delete media resources
To delete a file uploaded to a blog, use the HTTP DELETE method.
When you delete a file, the server also deletes the associated media link entry. Deleted files and media link entries cannot be restored.
See Authenticating requests for information about how to authenticate the request.
Atom API request details
Method Resource URI Input and output representations DELETE media resource Value of the href attribute of <link> with a rel="edit-media" attribute value for each entry in the media link entries feed. none
Input
None.
Output
None. Returned HTTP Headers
- HTTP/1.1 204 No Content
- Indicates that the media resource and its associated media link entry were successfully deleted (and no content is returned).
Error codes
- HTTP/1.1 401 Unauthorized
- HTTP/1.1 404 Not Found
Related reference