What would be safe SQL commands to delete all entries from the database?

And similarly to delete all content from a specific Matrix field?

The reason is because Craft seems to have an issue with deleting large amounts of data in the admin. We have approx. 12 Sites, and in those sites several hundred of pages, and in each page a Matrix field of content blocks.

Changing the Matrix field setting to save it in the entry it was created in has messed up the site. So I would like to "start again". Delete all entries OR delete all the matrix field content, and then re-import my content with Feed Me.

But Craft just hangs, or gives errors and I am finding it impossible to delete content. I cant even delete the Matrix field, Craft hangs. So resorting to SQL may be the best way.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.