---
title: "content.remove()"
description: "Drop a single entry from the manifest and cache by key."
canonical_url: "https://content.comark.dev/reference/content/remove"
---
# content.remove()

> Drop a single entry from the manifest and cache by key.

## `content.remove(key)`

Drops a single entry from the manifest and cache by key, then emits the `file:remove` hook.

**Parameters:**

- `key`: the entry's `meta.key`, or its bare `stem.ext` file key.

**Returns:** `Promise<void>`

## Usage

```ts [usage.ts]
await content.remove('default/posts/hello.md')
await content.remove('posts/hello.md') // the bare file key works too
```


## Sitemap

See the full [sitemap](https://content.comark.dev/sitemap.md) for all pages.
