I've ended up with loads of duplicate entries after a botched import job.
Is there an easy and safe way to delete all entries in a section, so that I can start over again?
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityI've ended up with loads of duplicate entries after a botched import job.
Is there an easy and safe way to delete all entries in a section, so that I can start over again?
If you delete the section, that will delete all the entries in the section as well.
Not really an answer, as such (as others have pointed out there's no way to mass delete from the CP, yet), but when I'm trialling imports I take a DB backup via the CP before and if the import fails or I need to rollback I simply restore the DB.
There is currently no way to select and delete all entries specific to a section through the control panel interface.
@pixelJitsu said "Couldn't you just delete the entry type and re add it?"
@Anna_MediaGirl replied, "Might work. Want to test? But not on a live site:)"
I just tested this on a dev site. Craft asked me if I was sure I wanted to delete the entry type and "all entries that use it".
Poof, they all disappeared from the dashboard.
There is a plugin for that. It can do many things, but most importantly... destroy items :)