Delete a cPanel style

This function deletes a cPanel style from the Paper Lantern theme.

Important:

This function cannot delete cPanel-provided styles.

Important:

This function only works in the Paper Lantern theme. We deprecated Paper Lantern in cPanel & WHM version 100 and will remove this function in version 110. This function will not work in the Jupiter theme.

SecurityBasicAuth
Request
query Parameters
name
required
string

The style's name.

Remember:

This function cannot delete cPanel-provided (glass, base, or retro`) styles.

Example: name=mystyle
type
required
string

The style's type.

  • global – A style that the root user created.

Important:

Only the root user can delete system-wide (global) styles.

  • reseller – A style that a reseller created.
  • user – A style that a cPanel user created.

Remember:

This function cannot delete cPanel-provided (default) styles.

Enum: "global" "reseller" "user"
Example: type=reseller
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/remove_style
Request samples
whmapi1 --output=jsonpretty \
  remove_style \
  type='reseller' \
  name='mystyle'
Response samples
application/json
{
  • "metadata": {
    • "command": "remove_style",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}