I have done a test of delprinterconnection using servername\sharename and it does actually work. As it was years ago, when I originally tried this, I am unable to say why it did not work in the past. It could have been a typo, issue with OS, the way I set the printer up etc.

So firstly, I will confirm that the delprinterconnection does work with \\server\sharename.

Secondly, what I would request is that the documentation be changed so that delprinterconnection is identical to addprinterconnection. I would propose that both show the example as \\server\sharename precisely because very often people want to move a printer from one server to another without renaming the printer sharename. So it makes sense for the documentation to show the example as \\server\sharename.

Also the current documentation confuses as the addprinterconnection is talking about sharename and the delprinterconnection is talking about printer name - the sharename and the printer name are not always the same.

This may have been the cause of the problem years ago if people were trying to use \\servername\printername instead of \\servername\sharename when deleting a printer. I have a feeling that this may have been the reason why I never got it to work in the past as originally my printer share name and printer names were different.

Currently my printer/share names are 2 or three words such as client photocopier black or client photocopier colour so the spaces is definitely not the issue.