Cancels a connection to a resource connected to the local device specified by name.
connection indicates the type of connection, with 1 being a persistent connection
and 0 being non-persistent. The force value is a Boolean indicating whether or not
to force the connection.