Before moving a room, you need to remove any dwellers assigned to the room and make sure that no other rooms would become inaccessible if the room is destroyed.