make delete file function