drop
Drop ctkit-managed content types
Section titled “Drop ctkit-managed content types”ctkit dropDeletes 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:Drop all content types
Section titled “Drop all content types”ctkit drop --all-content-typesDeletes 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.
Drop a specific content type
Section titled “Drop a specific content type”ctkit drop --content-type blogPostDeletes only the specified content type and its entries.
Clear migration history
Section titled “Clear migration history”ctkit drop --include-historyAlso 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:
ctkit drop --all-content-types --include-historySkip confirmation
Section titled “Skip confirmation”ctkit drop --yes-delete-everythingSkips the interactive DELETE confirmation prompt. The flag is intentionally verbose — you shouldn’t be able to type this by accident.
| Flag | Description |
|---|---|
--all-content-types | Delete all content types in the space, not just ctkit-managed ones. |
--content-type <name> | Delete only the specified content type. |
--include-history | Also clear migration tracking data from Contentful. |
--yes-delete-everything | Skip the confirmation prompt. |
Typical use cases
Section titled “Typical use cases”| Scenario | Command |
|---|---|
| Tear down a dev/test environment | ctkit drop --all-content-types --include-history --yes-delete-everything |
| Remove a single deprecated content type | ctkit drop --content-type legacyPage |
| Reset migration state without deleting content types | ctkit drop --include-history (with no content types selected) |