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

# vault.delete()

> Public low-code contract, signatures and examples for vault.delete.

## `vault.delete()`

Deletes the whole parent and its values; a non-null version/validFrom deletes only that exact revision.
Historical values remain accessible until their revision or parent is deleted.

### Signature

```ts theme={null}
static delete(name: string, options?: SecretDeleteOptions): Promise<void | null>;
```

### Example

```ts theme={null}
await vault.delete('TOKEN', { scope: 'user', validFrom: input.version });
```

See [all vault methods](https://docs.revoengine.com/low-code/reference/vault.md) or [runtime basics](https://docs.revoengine.com/low-code/overview.md).


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