How to remove empty directory?

QuestionsQuestions8 SkillsProBasic Files OperationsDec, 02 2025
053

To remove an empty directory, you can use the rmdir command followed by the name of the directory. For example:

rmdir directory_name

Replace directory_name with the name of the empty directory you want to remove. This command will only work if the directory is empty; otherwise, it will return an error.

0 Comments

no data
Be the first to share your comment!