---
name: "gearman_client_remove_servers"
section: "3"
platform: "linux"
package: "gearmand"
version: "2.2.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gearman_client_remove_servers"
---

# gearman\_client\_remove\_servers(3)

Gearmand Documentation, https://gearman.org/gearmand/

## NAME

gearman\_client\_remove\_servers - Gearmand Documentation, https://gearman.org/gearmand/

## SYNOPSIS

\#include \<libgearman/gearman.h\>

- ***gearman\_return\_t* gearman\_client\_add\_server(*gearman\_client\_st* \*client, const char \*host, *in\_port\_t* port)**

  - ***gearman\_return\_t* gearman\_client\_add\_servers(*gearman\_client\_st* \*client, const char \*servers)**

  - **void gearman\_client\_remove\_servers(*gearman\_client\_st* \*client)**

  ## DESCRIPTION

*gearman\_client\_add\_server()* will add an additional **gearmand** server to the list of servers that the client will take work from.

*gearman\_client\_remove\_servers()* will remove all servers from the *gearman\_client\_st*.

*gearman\_client\_add\_servers()* takes a list of **gearmand** servers that will be parsed to provide servers for the client. The format for this is SERVER\[:PORT\]\[,SERVER\[:PORT\]\]...

- **Examples of this are::**

  10\.0.0.1,10.0.0.2,10.0.0.3 localhost234,jobserver2.domain.com:7003,10.0.0.3

## RETURN VALUE

*gearman\_client\_add\_server()* and *gearman\_client\_remove\_servers()* return *gearman\_return\_t*.

## HOME

To find out more information please check: *https://gearman.org/gearmand/*

**SEE ALSO:**

**[gearmand(8)](/gearmand/8.md)** **[libgearman(3)](/libgearman/3.md)** **gearman\_client\_st**

## AUTHOR

Data Differential http://www.datadifferential.com/

## COPYRIGHT

2011-2014, Data Differential, http://www.datadifferential.com/
