> 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/admin/customer/delete-a-customer.md).

# Delete a Customer

Delete an existing customer profile using SenderWiz Admin API safely by first setting their status to 'Pending delete'.

### 🗑️ Delete a Customer

Remove a customer and all associated data permanently.\
This operation set the customer's status is set to `Pending delete`. Cleanup job removes data permanently in next scheduled run.

#### 🔹 HTTP Request

```html
DELETE ADMIN-API-URL/customers/CUSTOMER-UID
```

#### 🔸 URL Segments

| Segment        | Type   | Required | Description                                 |
| -------------- | ------ | -------- | ------------------------------------------- |
| `CUSTOMER-UID` | string | Yes      | Unique identifier of the customer to update |

#### 🔐 Authorization Header

`X-ADMIN-API-KEY: your-admin-api-key-here`

#### ⚠️ Important Note

The delete operation changes the customer's status to **Pending Delete**, allowing the daily cleanup process to permanently remove the customer profile along with all associated data.

#### 💻 PHP Example

```php
// DELETE CUSTOMER
$response = $endpoint->delete('ab382plq98zr7');

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

#### 📦 Sample JSON Response

```json
{
  "status": "success",
  "message": "Customer scheduled for deletion."
}
```
