Basically, I'm attempting to do the following but it errors out so it must not be possible this way. However, there must be some alternate way of accomplishing it. I just need a little assistance.

This is what I tried to do:

find /var/log/audit -mtime 5 | rmdir --ignore-fail-on-non-empty

I'm trying to get rmdir to use the output of the find command as input for removing directories that are not empty and are more than 5*24 (in other words, 5 days) old.