in reply to Deleting Directories from a path by reading information from Database columns
use File::Path 'remove_tree'; remove_tree('path/to/directory'); [download]
It's not clear if this is all you are asking.