Remove_file action handler

Hello,
Does anybody know/remember what portion of code does manage remove_file action (module/class/function…)
i.e /compta/facture/card.php, the trash bin icon
I unsuccessfully tried to trace the code

Bug patched on https://github.com/Dolibarr/dolibarr/pull/13060/files