---
title: "Delete an org template file"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete an org template file

Path: CloudRaker Workspace API › Organization Templates

`DELETE /organization/templates/{fileId}`

Deletes the template file; responds 204 with no body. Returns 404 if the file is not parented to the caller’s organization (cross-parent deletes are hidden). Authorization: org admin (denied → 403).

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `fileId` (`deleteOrgTemplate.path.fileId`; string, required)

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.cloudraker.com/organization/templates/<fileId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/organization/templates/<fileId>';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/organization/templates/<fileId>"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 204

Template file deleted (no body)


Source: https://docs.cloudraker.com/workspace/api/organization-templates/delete-org-template/index.md
