deleteUser()

Pixelsilk API function to delete a user--requires the access-users permission
Parameters:
userId: the unique identifier of the user

Output:
The function deleteUser returns void.

C# Example:
string userId = "idOfUser";
DeleteUser(userId);
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/deleteUser HTTP/1.1
HOST: www.example.com
Content-Length: 120
Content-Type: application/x-www-form-urlencoded
Cookie: auth=183F15503066...8BA45DEFE3B8

Request Data:
Unencoded Data:
json={
   "userId":"04e39fbe-a494-48aa-b7d4-70932ab3602b"
}&token=7AdbNHZQBtwc...RPTEK8UvSUQ=

Url-encoded Data:
json=%7b%0d%0a+++...%22%0d%0a%7d&token=7AdbNHZQBtwc...TEK8UvSUQ%3d

Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=A01ACBC5C048...A732FBB27B9; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2

Response Data:
{}

JavaScript Example:
Method Call:
pixelsilk2.deleteUser(input, callback);

Input Object:
{
    userId:"59f93697-3184-46ec-9681-fa1fc668cb79"
}

Returned Data:
{}

Back to Users »