This cron job will clean data that marked as soft deleted and it will hard deleted when 1st of every month.
I want to make sure that this cron will hard deleted table users or not ?
I believe it will delete any record marked as deleted = 1 from any and all sugarcrm tables
It gets the Tables from
$db = DBManagerFactory::getInstance();
$tables = $db->getTablesArray();
It then looks for a column called "deleted" and if one is found then it loops through deleted records and deletes the _cstm equivalent, if one exists, before deleting the record itself.
Note that it also writes backup insert statements to file, in case you need to undo something you can dig through the backup and find the record/a you need to restore.
If you have access to your server's file system
Retrieving data ...