# Delete tenant

`DELETE /api/tenant`

Authentication (security requirement alternatives):

```json
[
  {
    "role": [
      "SUPER_ADMIN"
    ]
  }
]
```

- role; scopes: SUPER_ADMIN

Responses:

- 200: The tenant has been successfully deleted

- 404: Tenant record not found

## Examples

### cURL

```bash
curl -X DELETE 'http://localhost:3000/api/tenant'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/tenant', {
  method: 'DELETE',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.delete('http://localhost:3000/api/tenant')
print(response.text)
```
