unlink is only used for files, rmdir should handle removing folders