Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Add an option to delete all existing entries to deleteContentType method #852

Closed
aladage opened this issue Aug 17, 2021 · 3 comments

Comments

@aladage
Copy link

aladage commented Aug 17, 2021

This is a request to add a deleteExistingEntries (boolean) option to the deleteContentType method. This option should default to false to prevent accidental content deletion.

Currently, if the deleteContentType method is executed on an environment and an entry is present, an error will be thrown and the migration will fail. Because we're using multiple Contentful environments and have automated migration scripting as part of our CI/CD workflows, this scenario will cause an entire deployment to fail, and can only be resolved by manually visiting all environments and deleting all entries before the CI/CD process has run.

@pascaloliv
Copy link

It sounds to be an interesting idea.👍🏻

@bradley-varol
Copy link

Needed exactly this today!

@mayakarabula
Copy link
Member

This ticket has been closed due to inactivity. If you still need help resolving your issue, please reach out through our community Slack, or contact Contentful support directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants