I would use vWin32fh for this. I believe there is a "remove folder" call which returns the error status, rather than displaying an error.