---
title: "Delete a note for a user"
type: reference
method: DELETE
path: /rest-api/system-users/{userId}/notes/{noteId}.do
tag: "Users"
---

# Delete a note for a user

`DELETE https://YOUR-NETWORK-DOMAIN/rest-api/system-users/{userId}/notes/{noteId}.do`

Removes the note from the user's Notes tab for good. Requires the right to edit the user: a role the caller may create users in (the bar the console's user page uses).

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `userId` | integer | yes | `42` | Numeric id of the user, as /rest-api/system-users/search.do reports it |
| `noteId` | integer | yes | `7` | Numeric id of the note, as the list of the user's notes reports it |

## Responses

- `200` — {success, deletedNoteId}
- `400` — Bad request — invalid or missing parameters
- `401` — Unauthorized — authentication error
- `403` — The caller may not edit users of the target's role
- `404` — No user with this id, or no note with this id for that user

## Example request

```bash
curl --request DELETE \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/system-users/42/notes/7.do' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/users/delete-system-users-notes