Sometimes it takes long time, when there are a lot of items to delete.
You can use so same functionality in the ILIAS Administration menu, to delete the items manually.
You can find this under "Administration >> System Check >> Deleted Objects"
Cause runtime issues, it is recommended to delete only a few files every run.