Deleting media resources
Added by IBM contributorIBM | Edited by Claudia R Elbourn on June 15, 2015
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.
When you delete a file, the server also deletes the associated media link entry. Deleted files and media link entries cannot be restored.
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.