# Auxvyn.delete()

### Syntax

```lua
Auxvyn.delete(userId: number | string, key: string?): boolean
```

***

### Parameters

| Parameter | Type             | Required   | Description                                                       |
| --------- | ---------------- | ---------- | ----------------------------------------------------------------- |
| `userId`  | number or string | <h3>✓</h3> | The player's Roblox user ID                                       |
| `key`     | string           | <h3>✗</h3> | The key to delete. If omitted, all data for the player is deleted |

***

### Returns

`true` if the deletion was successful, `false` if it failed.

***

### Examples

#### Delete a single key

```lua
Auxvyn.delete(player.UserId, "temporaryBuff")
```

#### Delete all data for a player

```lua
Auxvyn.delete(player.UserId)
```

***

### This Cannot Be Undone

Deleted data cannot be recovered. Use this function carefully, especially when deleting all data for a player.

***

### What's Next


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://auxvyn.gitbook.io/auxvyn-docs/module/auxvyn.delete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
