Added delete function to file manager