deleteTheme()

Pixelsilk API function to delete a theme--requires the edit-skin permission
Parameters:
themeId: the unique identifier of the theme to be deleted

Output:
The function deleteTheme returns void.

C# Example:
Guid themeId = <theme's id>;
DeleteTheme(themeId);
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/deleteTheme HTTP/1.1
HOST: www.example.com
Content-Length: 121
Content-Type: application/x-www-form-urlencoded
Cookie: auth=A610E83D04CF...7A85B3DCA6B0

Request Data:
Unencoded Data:
json={
   "themeId":"27a3cbe7-ee01-4820-908f-a6a333ad22ef"
}&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=E0D000042696...6BB667D8048; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2

Response Data:
{}

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

Input Object:
{
    themeId:"b87f48ad-a660-492e-bba9-c0cd38a00492"
}

Returned Data:
{}

Back to Themes »