Keep in mind that any routine that uses that device when you remove it may be deleted if it is the only device in the routine. What you can do is change the device in the routine to another device or virtual device and then change it back after you have added the device back to ST.