Community articleRemoving a photo from a profile
Added by IBM contributorIBM on April 10, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To remove a photo from a profile, use the HTTP DELETE method.

To remove a photo from a profile, use the HTTP DELETE method.

You can only remove the image file from a profile if you are the profile owner or an administrator. See Authenticating requests for information about how to authenticate the request.

To remove a photo from a profile, complete the following steps:
1. Get the service document for the person's profile. See Retrieving the Profiles service document.
2. From the service document, get the URI for the profiles feed which is specified in the href attribute of the collection element and use it to get the profiles feed for the user.
3. In the returned feed, find the link where the rel attribute has the value "" .../>. Alternatively, use the URI specified in the "Request Details" table below.

type="image" /> 

4. Use this link to send a DELETE request to remove the image file.

Method URI Description
DELETE /profiles/ Value of the href attribute of the <link rel="" .../> element in the user's profiles feed.
Name Type Optional Description
string No An ID generated by Profiles to identify a certain profile.
date Yes The date it was last modified in numerical value.
Code Description
No Content. Indicates activity was successfully deleted (and no content is returned).
Forbidden. Authorization failed.
Not Found