Update: find this under the function removebyuser()
// @TODO - enable removal of 'direct' stored files
elseif ($storageType == 'direct')
{
unlink($filePath);
return true;
}
and change it to:
// @TODO - enable removal of 'direct' stored files
elseif ($storageType == 'direct')
{
unlink($filePath);
}
For some reason, return true hinders the deletion process and change of ID from 1 to 2 in the DB.
Cheers!