when deleting files, make sure it is not in the upload tree first