def remove_sensor(self, sensor):
        """
        Remove an existing sensor from the container.

        :type sensor: ``dict``
        """
        sensor_id = self._get_sensor_id(sensor=sensor)

        if sensor_id not in self._sensors:
            LOG.warning("Sensor %s isn't running in this container.", sensor_id)
            return False

        self._stop_sensor_process(sensor_id=sensor_id)
        LOG.debug("Sensor %s stopped.", sensor_id)
        return True

        Remove an existing sensor from the container.

        :type sensor: ``dict``
        
st2reactor/st2reactor/container/process_container.py