Skip to content

drop

Terminal window
ctkit drop

Deletes every content type that ctkit manages (those with a corresponding local schema definition) along with all entries of those types. Before executing, ctkit displays what will be deleted and requires you to type DELETE to confirm.

The following content types and their entries will be deleted:
- blogPost (12 entries)
- author (3 entries)
Type DELETE to confirm:
Terminal window
ctkit drop --all-content-types

Deletes every content type in the space — not just the ones ctkit manages. Use this to completely reset a space. The flag is intentionally long to prevent accidental use.

Terminal window
ctkit drop --content-type blogPost

Deletes only the specified content type and its entries.

Terminal window
ctkit drop --include-history

Also removes the migration tracking data that ctkit stores in Contentful. This effectively resets the migration state so that ctkit migrate treats all migrations as pending.

Can be combined with other flags:

Terminal window
ctkit drop --all-content-types --include-history
Terminal window
ctkit drop --yes-delete-everything

Skips the interactive DELETE confirmation prompt. The flag is intentionally verbose — you shouldn’t be able to type this by accident.

FlagDescription
--all-content-typesDelete all content types in the space, not just ctkit-managed ones.
--content-type <name>Delete only the specified content type.
--include-historyAlso clear migration tracking data from Contentful.
--yes-delete-everythingSkip the confirmation prompt.
ScenarioCommand
Tear down a dev/test environmentctkit drop --all-content-types --include-history --yes-delete-everything
Remove a single deprecated content typectkit drop --content-type legacyPage
Reset migration state without deleting content typesctkit drop --include-history (with no content types selected)