Delete profile extension data
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. See Authenticating requests for information about how to authenticate the request.
To remove the data defined for custom fields added to a profile...
- Get the person's user feed. See Search for a user's profile.
- 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.
- Send a DELETE request to the web address specified in the href attribute.
This operation only deletes the data stored in the extension, it does not remove the definition of the extension.
Table 1. Atom API request details
Method Resource URI Input and output representations DELETE profile extension 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 remove. none
Input
None
Output
NoneReturned HTTP headers
HTTP/1.1 200 OK
Indicates that the extension information was successfully deleted and no content is returned.
- HTTP/1.1 400 Bad Request
- HTTP/1.1 403 Forbidden
- HTTP/1.1 404 Not Found
Input
DELETE /profiles/atom/profileExtension.do?email=jdoe@example.com&extensionId= profileLinks HTTP/1.1 Host: profiles.enterprise.example.com
Parent topic
Work with profile extensionsRelated reference
Search for a user's profile
});