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

# deleteNotification

> Deletes a single notification from the signed-in user's feed, along with the task it points
at and the task's files. Only notifications whose task is completed, failed, or cancelled can be deleted.



**mutation** `deleteNotification(input: DeleteNotificationInput!): DeleteNotificationPayload!`

## Arguments

**`input`**: `DeleteNotificationInput!` (required)

## Returns

`DeleteNotificationPayload!`

**`deletedFiles`**: `Int`

Number of files deleted.

---

**`errors`**: `[DeleteNotificationError!]`

## Examples

```graphql Mutation
mutation DeleteNotification($input: DeleteNotificationInput!) {
  deleteNotification(input: $input) {
    deletedFiles
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "id": "id"
  }
}
```

```json Response
{
  "data": {
    "deleteNotification": {
      "deletedFiles": 1,
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ]
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.