What are the error codes?

Try
code:
USE u: /delete /persistent
USE u: '\\server1\vol1\users\'+@userid
? 'Error '+@ERROR+' - '+@SERROR

Also, if the directories are hidden, then you'll have to append a '$$' as in
code:
USE u: '\\server1\vol1\users\'+@userid+'$$'

_________________________
There are two types of vessels, submarines and targets.