Delete object action taking too long to delete objects

Hi , I have a business logic where i import data from a excel file, after importing the required data into tables. I try to delete the file object ( i.e Excel file) using delete object action, but my delete action takes way too long for processing the delete action. It takes around 40-50sec for deleting the file with 2k+ records. Can anyone suggest how to decrease the time taken by the delete action. Thanks in Advanc
1 answers

Is my assumption correct that the data is still connected to this filedocument after you imported these records? Because if that is true there is probably a delete behaviour that also removes these records before deleting the file and hence the time it takes.