Community articleDeleting media resources
Added by IBM contributorIBM on March 20, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To delete a file uploaded to a blog, use the HTTP DELETE method.



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.

Input

None.

Output

None.

Input
Method URI Description
DELETE /blogs/{communityUuid}/api/media/{fileName} Value of the href attribute of <link> with a rel="edit-media" attribute value for each entry in the media link entries feed.
Name Type Optional Description
communityUuid
string No The UUID of the community that contains the blog..
fileName
string No Name of file you wish to delete
Output
Code Description
204
Indicates that the media resource and its associated media link entry were successfully deleted (and no content is returned).
401
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
404
Not Found.