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]: Delete entries #1388

Open
neptunus opened this issue Sep 6, 2024 · 1 comment
Open

[Suggestion]: Delete entries #1388

neptunus opened this issue Sep 6, 2024 · 1 comment

Comments

@neptunus
Copy link
Contributor

neptunus commented Sep 6, 2024

Expected Behavior

See #852 — when we use the migration API to clean up the content model and delete deprecated fields, we're missing the ability to delete entries of that field type at the same time.

Possible Solution

I would be fine with this being an option that could be passed to the deleteContentType method (as suggested in the previous ticket) or if this would be added as a standalone method.
deleteEntriesOfType(id: string) or something along those lines.

Context

The problem lies in having to go in and manually delete entries in the GUI (on the master environment no less) before running migrations, which is a step out of the process we have in place.

@diegoaguilar
Copy link

Hello, @neptunus, in the past I've thought about this too.

My rationale is mostly required or ideal preconditions before running migration. I've also run simply test or experimental migration scripts and I've wanted to start from scratch.

Some open questions

  • How should potential broken links be handled? So let Content Type A the target for deletion, and Content Type B a content type with a link field that might be tied to Content Type A entries.
  • Should one param for the exposed method be filter?
  • Should this be a 2 confirmations step method`? First execution would be a dry run search of entries with a potential

Technical considerations

  • Is Bulk API an implementation approach?

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

2 participants