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
|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|
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
Parent topic: Working with media resources
Media link content