> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# Delete an email layout

DELETE`/workspace/{orgId}/email/layouts/{id}`

Deletes a layout nothing uses; a layout in use is a 409 naming the emails, published versions and journey steps using it. Owners and admins.

## Path Parameters

`orgId`

numberrequired

`id`

numberrequired

## Response

200

**cURL**

```bash
curl --request DELETE \
  --url 'https://api.workover.io/workspace/{orgId}/email/layouts/{id}'
```

**JavaScript**

```javascript
const options = {
  method: 'DELETE'
};

fetch('https://api.workover.io/workspace/{orgId}/email/layouts/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/workspace/{orgId}/email/layouts/{id}"

response = requests.delete(url)

print(response.text)
```
