Pruning dangling entries #15765
-
If I have a site with entries in various sections, and I delete the site by removing it from the project config and running Is there any way to clean these dangling entries up from the database? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I have the same question. Looks like in Craft 5 you can just delete content using |
Beta Was this translation helpful? Give feedback.
-
Sites only get soft-deleted initially, and won’t be fully deleted until To hard-delete the data immediately, you can run |
Beta Was this translation helpful? Give feedback.
Sites only get soft-deleted initially, and won’t be fully deleted until
gc
is run after the softDeleteDuration has passed (30 days by default).To hard-delete the data immediately, you can run
craft gc --delete-all-trashed
; or answeryes
to the “Delete all trashed items?” prompt when runninggc
interactively.