rmdir directory/* to get rid of all files and dir
rmdir -rf directory
or try
rmdir -rf directory/*
NOTE:i dont use this to often, it can be risky especially at cmd line level
unix and linux commands are all universal. So if u know unix cmd line scripting u can use that for linux cmd scripting too.
By the way out of curiousity what directory are u nuking?
cheers
dexta