deletes unnecessary file