---
title: "Soft-delete a visit note"
description: "Stamps metadata.deleted_at and metadata.deleted_by. The author can delete. An owner or admin can delete someone else's note on the web path only. The phone path does not widen that right.\n"
---

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

Path: Channel Automation API › Conversations

`DELETE /api/field-sales/appointments/{id}/notes/{noteId}`

Stamps metadata.deleted_at and metadata.deleted_by. The author can delete. An owner or admin can delete someone else's note on the web path only. The phone path does not widen that right.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Path parameters

- `id` (`delete/api/field-sales/appointments/id/notes/noteId.path.id`; string, required)
  - format `uuid`
- `noteId` (`delete/api/field-sales/appointments/id/notes/noteId.path.noteId`; string, required)
  - format `uuid`

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.channelautomation.com/api/field-sales/appointments/<id>/notes/<noteId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/field-sales/appointments/<id>/notes/<noteId>';
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.channelautomation.com/api/field-sales/appointments/<id>/notes/<noteId>"

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

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

print(response.text)
```

## Responses

### 200

{ success: true }

### 403

Caller cannot delete this note

### 404

Note is missing or already deleted


Source: https://developer.channelautomations.com/api/delete-api-field-sales-appointments-id-notes-note-id/index.md
