added delete file function