11

You could also delete all rows in your craft_elements table, which have type set to Entry (or whatever ElementType you want to delete).


8

You can delete all of your existing entries and assets by executing this SQL query: DELETE FROM craft_elements WHERE type IN ('Entry', 'Category', 'Tag', 'Asset') All associated content, relationships, etc., will automatically be deleted. If you have a bunch of users you want to delete, you should at least spare your own admin account, so figure out your ...


4

When a user is deleted from the system via the Craft control panel, they are presented with a model offering them the choice of what they want to do with that user's content. The options are to 1) transfer it to a different user (which you can select) or 2) delete it entirely. So the behavior you're describing certainly sounds like someone went through the ...


4

Technically, all entries have all fields, regardless of their layout. Field layouts are mostly just a UI thing. 1) Is there a way to tell if an field is actually actively assigned to the entry layout? It’s a little cumbersome and would require the MN Break and Continue plugin, but yes: {% for flf in entry.getFieldLayout().getFields() %} {% set field ...


3

You can use the onBeforeDeleteEntry event in an 'init' method defined in your plugin's main file to: intercept the delete process; retrieve the related books; check each book for more than one author; and if only one author, delete the book. Not tested. public function init() { parent::init(); craft()->on('entries.onBeforeDeleteEntry', ...


3

I figured it out somewhat by using the Import plugin, by Bob Olde Hampsink, exporting all my slugs to a csv, then using the delete functionality of the plugin to remove all entries with a slug found in the csv. Worked perfectly!


1

This is currently not possible natively in Craft, but you might want to consider voting for this feature request, which is very similar. In the meantime, you could write a custom plugin that provided its own entry index view and allowed you to delete entries any way you wished.


1

I think you're looking for the Delete Duplication Handling option. From the documentation: Delete all existing entries in this section, adding only entries from this feed. Be careful. Use case: Events, or when only data from the current feed is required. "I want only the entries from this feed in this section."


Only top voted, non community-wiki answers of a minimum length are eligible