Remove a user property
Name | Type | Description |
userid | string | either an integer user ID, "current", or "=" followed by a double uri-encoded user name |
key | string | A unique identifier for a property that is obtained through GET:users/{userid}/properties |
Name | Type | Description |
redirects | int? | If zero, do not follow page redirects. |
authenticate | bool? | Force authentication for request (default: false) |
Name | Value | Description |
OK | 200 | The request completed successfully |
Bad Request | 400 | Invalid input parameter or request body |
Forbidden | 403 | ADMIN access is required to access other user's properties |
Not Found | 404 | Requested user and/or property could not be found |
The following code authenticates and deletes a user property named 'foo'.
Plug p = Plug.New("http://devwiki/@api/deki"); p.At("users", "authenticate") .WithCredentials("sysop", "password").Get(); p.At("users", "current", "properties", "foo") .Delete();
Add notes about requirements or config values
The following command deletes property "foo" attached to user "bar":
curl -u username:password -X DELETE -i http://mindtouch.address/@api/deki/user/=bar/properties/foo