i am using rmdir to delete directories but it does not seem to work when there is something in the directory

any easy ways to fix this?