Delete a cPanel style

This function deletes a cPanel style.

Important:

This function cannot delete cPanel-provided styles.

Authorizations:
query Parameters
name
required
string

The style's name.

Remember:

This function cannot delete cPanel-provided (glass, base, orretro`) 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

Response Schema: application/json
object

Request samples

whmapi1 --output=jsonpretty \
  remove_style \
  type='reseller' \
  name='mystyle'

Response samples

Content type
application/json
{
  • "metadata": {
    • "command": "remove_style",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}