Delete collection
delete_collectionDelete a whole collection (a blog, projects, menu, team…): its schema, its listing page (the page at its path prefix) and EVERY item in it. Use this when the user wants a whole section of posts or entries gone. To remove one entry use delete_content_item; never remove a collection with patch_fixture, which leaves all its items behind. The items and the listing page come off the live site immediately, like Delete in the editor; the schema removal stays in the draft until publish. Links to the collection elsewhere (menu, footer, buttons) are not changed: they come back in dead_links with where each one is — re-point or remove them. Also cleans up items left behind by a collection that is no longer declared. Permanent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | ||
| content_type | Yes |