# Storage<!-- -->

Base class for storages.

### Hierarchy

* *Storage*

  * [Dataset](https://crawlee.dev/python/api/class/Dataset)
  * [KeyValueStore](https://crawlee.dev/python/api/class/KeyValueStore)
  * [RequestQueue](https://crawlee.dev/python/api/class/RequestQueue)

## Index[](#Index)

### Methods

* [drop](https://docs.apify.com/sdk/python/reference/class/Storage.md#drop)
* [](https://crawlee.dev/python/api/class/Storage#get_metadata)
* [](https://crawlee.dev/python/api/class/Storage#open)
* [purge](https://docs.apify.com/sdk/python/reference/class/Storage.md#purge)

### Properties

* [id](https://docs.apify.com/sdk/python/reference/class/Storage.md#id)
* [name](https://docs.apify.com/sdk/python/reference/class/Storage.md#name)

## Methods<!-- -->[](#Methods)

### [](#drop)[](https://github.com/apify/crawlee-python/blob/ea492fa9b5377f44082dc51d582e85d686b23c75//src/crawlee/storages/_base.py#L57)drop

* async **drop**(): None

- Overrides [RequestManager.drop](https://crawlee.dev/python/api/class/RequestManager#drop)

  Drop the storage, removing it from the underlying storage client and clearing the cache.

  ***

  #### Returns None

### [](#undefined)[](https://github.com/apify/apify-sdk-python/blob/c674a4d42ade9c1a07f33062b6702497cd34b19d//src/crawlee/storages/_base.py#L29)

:

### [](#undefined)[](https://github.com/apify/apify-sdk-python/blob/c674a4d42ade9c1a07f33062b6702497cd34b19d//src/crawlee/storages/_base.py#L34)

:

### [](#purge)[](https://github.com/apify/crawlee-python/blob/ea492fa9b5377f44082dc51d582e85d686b23c75//src/crawlee/storages/_base.py#L61)purge

* async **purge**(): None

- Overrides [RequestManager.purge](https://crawlee.dev/python/api/class/RequestManager#purge)

  Purge the storage, removing all items from the underlying storage client.

  This method does not remove the storage itself, e.g. don't remove the metadata, but clears all items within it.

  ***

  #### Returns None

## Properties<!-- -->[](#Properties)

### [](#id)[](https://github.com/apify/crawlee-python/blob/ea492fa9b5377f44082dc51d582e85d686b23c75//src/crawlee/storages/_base.py#L20)id

id: str

Get the storage ID.

### [](#name)[](https://github.com/apify/crawlee-python/blob/ea492fa9b5377f44082dc51d582e85d686b23c75//src/crawlee/storages/_base.py#L25)name

name: str | None

Get the storage name.
