Copy as Markdown[View as Markdown](/docs/sdk/functions/rmDataStore.md)

***

# Function: rmDataStore()

> **rmDataStore**(`directory`): (`path`) => `Promise`<`void`>

Defined in: data-stores.ts:84

Delete an data store (e.g. database, cache, etc.) at its given path.

## Parameters[​](#parameters "Direct link to Parameters")

| Parameter   | Type     |
| ----------- | -------- |
| `directory` | `string` |

## Returns[​](#returns "Direct link to Returns")

`Function`

### Parameters[​](#parameters-1 "Direct link to Parameters")

| Parameter | Type     |
| --------- | -------- |
| `path`    | `string` |

### Returns[​](#returns-1 "Direct link to Returns")

`Promise`<`void`>

## Examples[​](#examples "Direct link to Examples")

```
import utils from '@eventcatalog/utils';

const { rmDataStore } = utils('/path/to/eventcatalog');

// removes an data store at the given path (containers dir is appended to the given path)
// Removes the data store at containers/orders-db
await rmDataStore('/orders-db');
```

```
import utils from '@eventcatalog/utils';

const { rmContainer } = utils('/path/to/eventcatalog');

// removes an container at the given path (containers dir is appended to the given path)
// Removes the container at containers/orders-db
await rmContainer('/orders-db');
```
