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

# Delete Nonce

> Delete a nonce

Used nonce accounts can be deleted once they are used to claim the rent back.

```bash API theme={null}
curl -X DELETE "https://yournonciinstance.com/nonce/delete/<nonce_id>" \
-H "Authorization: Bearer <secret>"
```

```ts SDK theme={null}
await nonci.deleteNonceById(<nonce_id>);
```

```json Response theme={null}
{
    "message": "Nonce deleted successfully",
    "signature": "2kUK4LckoY28CGbubAT8hT7jjEKgkA6p5NqfJJRyHMd43VRpWLSiMhyCFoQrRRWwamWwsZbR6vAUUkRcoWoXxP3B"
}
```

If you want to delete all used nonces at once, you can use the bulk delete endpoint -

```bash API theme={null}
curl -X DELETE "https://yournonciinstance.com/nonce/all-used \
-H "Authorization: Bearer <secret>"
```

```ts SDK theme={null}
await nonci.deleteUsedNonces();
```

```json Response theme={null}
{
  "message": "All used nonces deleted successfully",
  "number": 69
}
```


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