implemented optional deletion of directories/hidden objects