def remove()

in composer_local_dev/environment.py [0:0]


    def remove(self, force, force_error):
        containers = {self.container_name}
        if not self.is_database_sqlite3:
            containers.add(self.db_container_name)

        for container_name in containers:
            container = self.get_container(container_name, ignore_not_found=True)
            if container is not None:
                if container.status == constants.ContainerStatus.RUNNING:
                    if not force:
                        raise force_error
                    container.stop()
                container.remove()

        network = self.get_docker_network()
        network.remove()