acf_delete_json_field_group()ACF 5.1.5

Deletes a field group JSON file.

No Hooks.

Returns

true|false. True on success.

Usage

acf_delete_json_field_group( $key );
$key(string) (required)
The field group key.

Changelog

Since 5.1.5 Introduced.

acf_delete_json_field_group() code ACF 6.0.4

function acf_delete_json_field_group( $key ) {
	return acf_get_instance( 'ACF_Local_JSON' )->delete_file( $key );
}