Delete post type
fabrement-delete-post-typeUnregister a custom post type Fabrement created and drop its definition. Its posts stay in the database (orphaned; back if the type is re-created under the SAME slug); its archive page and its Fabrement fields file are deleted with it (the field values stay on those posts). Called for a slug whose type is already gone, it deletes a fields file left behind. NOT a way to rename one: under a different slug the new type comes back empty and the posts stay orphaned under the old. To change what a type looks like, keep the slug and use update-post-type {rewrite} for its URL and {singular, plural} for its name. Core/plugin types are refused. Refused while posts of that type exist — they would stay in the database reachable from nowhere; pass force:true if that is meant. The archive template binding is dropped (it cannot survive), and the answer names what was left in place. Any render bundle that drew it is listed with renderFiles — check each before deleting it, one bundle can serve several types. Confirm with the user first. Rules: get-skill-doc {id:"content-model-contract"} — read it before the first call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The custom post type slug (from list-post-types-custom). | |
| force | No | Delete even while posts of this type exist — they stay in the database, reachable from nowhere. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| deleted | Yes |