---
title: "Delete reseller and reseller's cPanel accounts"
method: GET
path: "/terminatereseller"
tags: ["Resellers", "Reseller Account Management"]
---

# Delete reseller and reseller's cPanel accounts

`GET /terminatereseller`

This function deletes a reseller and **all** of the reseller's cPanel accounts.

**Warning:**

* You **cannot** recover deleted accounts. **Use this function with extreme caution.**
* This function deletes the reseller account and **all** of the accounts that the reseller
owns.
* To remove reseller privileges from an account but **not** delete the reseller's account
or any accounts that the reseller owns, use the WHM API 1 `unsetupreseller` function.

## Query parameters

- `terminatereseller` 1 | 0, required
- `user` string, username, required

## Response `200`

HTTP Request was successful.

- object
  - `data` object
    - `acct` object[] — An array of objects containing the function's output.
      - `output` object — An object containing the termination data for the reseller's accounts.
        - `raw` string — Output from the account's removal. **Note:** This output may contain HTML.
      - `reason` string — A message of success or the reason for a failure.
      - `result` 1 | 0 — Whether the function succeeded. * `1` — Success. * `0` — Failure.
      - `user` string, username — The account username.
  - `metadata` object
    - `command` string — The method name called.
    - `reason` string — The reason the API function failed when the `metadata.result` field is `0`. This field may display a success message when a function succeeds.
    - `result` 1 | 0 — * `1` — Success. * `0` — Failed. Check the `reason` field for more details.
    - `version` integer — The version of the API function.

---

[API](https://skmtc.net/cpanel/apis/whm-api.md) · [All operations](https://skmtc.net/cpanel/apis/whm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/whm-api/revisions/3da41671c02c/schema)
