code: def delete_agent(self, pool_id, agent_id):
          
          route_values = {}
          if pool_id is not None:
              route_values['poolId'] = self._serialize.url('pool_id', pool_id, 'int')
          if agent_id is not None:
              route_values['agentId'] = self._serialize.url('agent_id', agent_id, 'int')
          self._send(http_method='DELETE',
                     location_id='e298ef32-5878-4cab-993c-043836571f42',
                     version='5.1-preview.1',
                     route_values=route_values)
docs: DeleteAgent.
          [Preview API] Delete an agent.  You probably don't want to call this endpoint directly. Instead, [use the agent configuration script](https://docs.microsoft.com/azure/devops/pipelines/agents/agents) to remove an agent from your organization.
          :param int pool_id: The pool ID to remove the agent from
          :param int agent_id: The agent ID to remove