RMDIR Statement The RMDIR statement is used to create a new subdirectory in the specified disk or drive. Syntax: RMDIR (path) directory name Eg: RMDIR "D:\exam" In this example, it removes a subdirectory exam in d: drive. Share : Twitter