async def leave(self, *, force: bool = False) -> bool:
        """
        Leave a swarm.

        Args:
            force: force to leave the swarm even if the node is a master
        """

        params = {"force": force}

        await self.docker._query("swarm/leave", method="POST", params=params)

        return True
Leave a swarm.

        Args:
            force: force to leave the swarm even if the node is a master