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.
Table 1. Atom API request details
Input and output representations
Value of the href attribute of <link> with a rel="edit-media" attribute value for each entry in the media link entries feed.
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
Parent topic: Working with media resources
Media link content
- HTTP/1.1 401 Unauthorized
- HTTP/1.1 404 Not Found