You haven’t said, but my assumption is the device is a printer and its associated output queue. You cannot delete one without the other.
But you can create an output queue in the Test and Production libraries that you can attach to that printer thru the strprtwtr command. That output queue can have the same name as the printer, if so desired.
Not sure if that helps,