acf_delete_post_type()ACF 6.1

Deletes an ACF post type from the database.

No Hooks.

Returns

true|false. True if post type was deleted.

Usage

acf_delete_post_type( $id );
$id(int|string)
The ACF post type ID, key or name.

Changelog

Since 6.1 Introduced.

acf_delete_post_type() code ACF 6.8.8

function acf_delete_post_type( $id = 0 ) {
	return acf_delete_internal_post_type( $id, 'acf-post-type' );
}