Deleting profile extension data
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 remove the data defined for custom fields added to a profile, send a HTTP DELETE request to the Profiles Extension resource.

You can only remove custom field data from the profile of the user whose credentials you used to authenticate with the server.

To remove the data defined for custom fields added to a profile, complete the following steps:

  1. Get the person's user feed. See Searching for a user's profile.
  2. Get the URI of the extension resource which is specified in the href attribute of the <link> element in the user's user feed that has a rel="http://www.ibm.com/xmlns/prod/sn/ext-attr" attribute and a snx:extensionId attribute that matches the extension you want to update.
  3. Send a DELETE request to the web address specified in the href attribute.

 

Input
Method URI Description
DELETE /profiles/atom/profileExtension.do Value of the href attribute of the <link> element in the user's user feed that has a rel="http://www.ibm.com/xmlns/prod/sn/ext-attr" attribute and a snx:extensionId attribute that matches the extension you want to update.
Name Type Optional Description
email
string Yes User's email.
extensionId
string No Extension data.
key
string No An ID generated by Profiles to identify a person.
lastMod
string Yes last modified since a specified date. Specify the date in the number of milliseconds since January 1, 1970, 00:00:00 GMT time.
Output
Code Description
200
OK. Indicates that the request was received successfully.
400
Bad Request. Returned when no matching user record can be found.
403
Forbidden. The server refuses to fulfill a request, typically because the request was for an object that you don't have permission to access.
404
Page not found.