Close the report file before deleting it and make file removal clearer