Unable to delete contacts permanently
You can turn off this check by setting hidden setting 'allowPermDeleteFinancial' to TRUE either in civicrm.settings.php or using api explorer

global $civicrm_setting;
$civicrm_setting['CiviCRM Preferences']['allowPermDeleteFinancial'] = TRUE;


or 



HTH

Pradeep