/** * Function to deleted the records permanently in CRM * @param type $reocrdIds */ public function deleteRecords(Vtiger_Request $request) { $recordIds = $this->getRecordsListFromRequest($request); $recycleBinModule = new RecycleBin_Module_Model(); $response = new Vtiger_Response(); if ($recordIds) { $recycleBinModule->deleteRecords($recordIds); $response->setResult(array(true)); $response->emit(); } }