rmdir

Format:

rmdir options directories 

Option:

-p Delete all empty directories that are found in the deletion process
					$ rmdir /var/spool/tmp/lp_HP
				

will remove the directory lp_HP located in /var/spool/tmp.

Get Linux and Unix Shell Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.