How to delete specific files in a folder from a list of excel or txt file

6 ビュー (過去 30 日間)
Anh Dao
Anh Dao 2020 年 4 月 23 日
回答済み: Ganesh Regoti 2020 年 4 月 27 日
So I have over 2 thousands txt files in a folder, I've got a list of specific files I want to delete (over 800) in an excel sheet or I can convert it into txt easity, is there anyway I can delete all the files in that folder that's listed in that excel sheet or Txt file? Thank you!

回答 (1 件)

Ganesh Regoti
Ganesh Regoti 2020 年 4 月 27 日
Hi,
Given the list of files are in excel sheet, you can import that data using readTable.
For deleting respective files, I have found a similar question in ML Answers that can be referred
Hope this helps!

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by