Take the 2-minute tour ×
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It's 100% free, no registration required.

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?

share|improve this question

4 Answers 4

If you delete the section, that will delete all the entries in the section as well.

share|improve this answer

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.

share|improve this answer

There is currently no way to select and delete all entries specific to a section through the control panel interface.

share|improve this answer
    
Couldn't you just delete the entry type and re add it? –  pixelJitsu Jul 3 at 13:04
    
Might work. Want to test? But not on a live site:) –  Anna_MediaGirl Jul 3 at 16:43

@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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.