deleteControl()

Pixelsilk API function to remove a control--requires the advanced-admin-access permission
Parameters:
controlId: the unique identifier of the control

Output:
The function deleteControl returns void.

C# Example:
Guid controlId = <control's id>;
DeleteControl(controlId);
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/deleteControl HTTP/1.1
HOST: www.example.com
Content-Length: 123
Content-Type: application/x-www-form-urlencoded
Cookie: auth=6F32B05D99E0...CD7FFB462F2D

Request Data:
Unencoded Data:
json={
   "controlId":"8f2f327a-25ae-4e0e-ad6f-8cc38dba2ab1"
}&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=E441937DF96A...EE974A45266; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2

Response Data:
{}

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

Input Object:
{
    controlId:"74456de0-6bb2-4640-b2f3-e9d84d39ae7c"
}

Returned Data:
{}

Back to Controls »