add recursive and synchronous rmdir
use rmdir
add a newline for readability