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.
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
string No The UUID of the community that contains the blog..
string No Name of file you wish to delete
Code Description
Indicates that the media resource and its associated media link entry were successfully deleted (and no content is returned).
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
Not Found.