Added delete function for files.