code: def RemoveObject(self, path):
          '''Remove a D-Bus object from the mock
  
          As with AddObject, this will *not* emit the InterfacesRemoved signal if
          it’s an ObjectManager instance.
          '''
          try:
              objects[path].remove_from_connection()
              del objects[path]
          except KeyError:
              raise dbus.exceptions.DBusException(
                  'object %s does not exist' % path,
                  name='org.freedesktop.DBus.Mock.NameError'f RemoveObject(self, path):
          '''Remove a D-Bus object from the mock
  
          As with AddObject, this will *not* emit the InterfacesRemoved signal if
          it’s an ObjectManager instance.
          '''
          try:
              objects[path].remove_from_connection()
              del objects[path]
          except KeyError:
              raise dbus.exceptions.DBusException(
                  'object %s does not exist' % path,
                  name='org.freedesktop.DBus.Mock.NameError')
docs: Remove a D-Bus object from the mock
  
          As with AddObject, this will *not* emit the InterfacesRemoved signal if
          it’s an ObjectManager instance.