def RemoveSession(self, session_path):
    '''OBEX method to remove an existing transfer session.

    This takes the path of the transfer Session object and removes it.
    '''

    manager = mockobject.objects['/']

    # Remove all the session's transfers.
    transfer_id = 0
    while session_path + '/transfer' + str(transfer_id) in mockobject.objects:
        transfer_path = session_path + '/transfer' + str(transfer_id)
        transfer_id += 1

        self.RemoveObject(transfer_path)

        manager.EmitSignal(OBJECT_MANAGER_IFACE, 'InterfacesRemoved',
                           'oas', [
                               dbus.ObjectPath(transfer_path),
                               [TRANSFER_IFACE],
                           ])

    # Remove the session itself.
    self.RemoveObject(session_path)

    manager.EmitSignal(OBJECT_MANAGER_IFACE, 'InterfacesRemoved',
                       'oas', [
                           dbus.ObjectPath(session_path),
                           [SESSION_IFACE, PHONEBOOK_ACCESS_IFACE],
                       ])
OBEX method to remove an existing transfer session.

    This takes the path of the transfer Session object and removes it.