Using Gravity Forms ‘gform_rest_api_capability_delete_forms’ PHP action
The `gform_rest_api_capability_delete_forms` filter in Gravity Forms allows developers to set the capability required to delete forms using the REST API, including restricting deletion to certain users or forms