add delete file function