a naive attempt at rmdir