Remove a photo from a profile 

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...

  1. Get the service document for the person's profile. See Retrieve the Profiles service document.

  2. Get the URI of the profiles feed which is specified in the href attribute of the collection element in the service document and use it to get the profiles feed for the person.

  3. Find the <link rel="" .../> element returned in the feed. For example:

           type="image" /> 

  4. Send a DELETE request to the web address specified in the href attribute.

By default, Profiles provides a generic image for users who have deleted or not added a photo to their profile.

Table 1. Atom API request details

Method Resource URI Input and output representations
DELETE image file Found in the href attribute of <link rel="" .../> element in the user's profiles feed. none





Returned HTTP headers

HTTP/1.1 204 No Content


Parent topic

Work with profile photos