added delete function for the upload class