# Delete note

`DELETE /api/note/{noteId}`

URL: https://repsona.com/api/delete-note-noteid

Soft deletes a note and its sub-notes in the current space.

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `noteId` | path | integer | required | ID of the note. |

## Request

```sh
curl -X DELETE "https://<space>.repsona.com/api/note/{noteId}" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## Responses

- 200: Note deleted
- 400: Invalid note identifier
- 401: Authentication is required
- 404: Note not found

## Example response

```json
{
  "deletedNoteIds": [
    187,
    188
  ]
}
```
