I want to look for the oldest directory (inside a directory), and delete it. I am using the following:
rm -R $(ls -1t | tail -1)
ls -
rm -R $(ls -tl | grep '^d' | tail -1 | cut -d' ' -f8)