> For the complete documentation index, see [llms.txt](https://api.senderwiz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.senderwiz.com/customer/subaccounts/delete-a-subaccount.md).

# Delete a Subaccount

### ❌ Delete a Subaccount

Remove a specific subaccount from your SenderWiz customer panel using its unique child UID.

***

#### 🔹 HTTP Request

```http
DELETE API-URL/children/CHILD-UNIQUE-ID
```

***

#### 🔸 URL Segments

| Segment           | Required | Description                             |
| ----------------- | -------- | --------------------------------------- |
| `CHILD-UNIQUE-ID` | ✅        | The unique identifier of the subaccount |

***

#### 🔐 Authorization Header

```http
X-API-KEY: your-api-key-here
```

***

#### 💻 PHP Example

```php
// DELETE A SUBACCOUNT
$response = $endpoint->deleteChild('8e12c91b4a2d1');

// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
```

***

#### 📦 Sample JSON Response

```json
{
  "status": "success",
  "message": "Subaccount successfully deleted."
}
```

***

#### 🧾 Notes

* Deleting a subaccount is permanent.
* Make sure the `CHILD-UNIQUE-ID` is valid before attempting the delete operation.
