# Storage<!-- -->

Base class for storages.

### Hierarchy

* *Storage*

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

## Index[**](#Index)

### Methods

* [**drop](https://docs.apify.com/sdk/python/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/sdk/python/reference/class/Storage.md#purge)

### Properties

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

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

### [**](#drop)[**](https://github.com/apify/crawlee-python/blob/e7e0364ffc322bcd0d7c603e9fb5814f2a9e8ab3//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/22eee8c5644511292904e4d21fd3ee8c2e83e21a//src/crawlee/storages/_base.py#L29)

:

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

:

### [**](#purge)[**](https://github.com/apify/crawlee-python/blob/e7e0364ffc322bcd0d7c603e9fb5814f2a9e8ab3//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/e7e0364ffc322bcd0d7c603e9fb5814f2a9e8ab3//src/crawlee/storages/_base.py#L20)id

**id: str

Get the storage ID.

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

**name: str | None

Get the storage name.
