Added delete file function including clean function.