> ## 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.

# storage.archiveEntry()

> Public low-code contract, signatures and examples for storage.archiveEntry.

## `storage.archiveEntry()`

Archives an entry without deleting its backing object.

Notes:

* Unavailable with `readOnly: true` (throws an error).

### Overloads

```ts theme={null}
static archiveEntry(
      storageEntryId: string,
      data: StorageVersionInput,
    ): Promise<StorageEntryView>;

static archiveEntry(
      namespace: string,
      storageEntryId: string,
      data: StorageVersionInput,
    ): Promise<StorageEntryView>;
```

### Example

```ts theme={null}
const entry = await storage.archiveEntry(storageEntryId, { version: currentVersion });
```

See [all storage methods](https://docs.revoengine.com/low-code/reference/storage.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.