Slash forward icon
  • Documentation
  • Plugins
  • API Reference
  • Examples
  • GitHub
    • comarkContent
    • content.get
    • content.list
    • content.navigation
    • content.stat
    • content.getSource
    • content.handler
    • content.watch
    • content.update
    • content.remove
    • content.cache
    • content.manifest
    • content.hooks
    • content.status
    • content.init
    • content.loadSnapshot
    • content.addParser
    • content.addListingFields
    • content.addServeHandler
    • createContentClient
    • content.get
    • content.list
    • content.navigation
    • defineContentPlugin
    • defineContentClientPlugin
    • Content
    • Client
    • Plugins
    • Typegen
    • File parsed
  • Cheat Sheet
  • CLI
Reference

content.remove()

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

content.remove(source, key)

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

Parameters:

  • source: the source name.
  • key: the entry's meta.key.

Returns: Promise<void>

Usage

usage.ts
await content.remove('default', 'default:posts/hello.md')

content.update

Upsert a single parsed file into the manifest and cache.

content.cache

The resolved cache backing the instance, storing parsed bodies and snapshots.

On this page

  • content.remove(source, key)
  • Usage
  • Edit this page on GitHub
  • Star on GitHub
  • Comark docs
© 2026 Vercel, Inc.