---
name: "ldapdeleteuserfromgroup"
section: "1"
platform: "linux"
package: "ldapscripts"
version: "2.0.8-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ldapdeleteuserfromgroup"
---

# ldapdeleteuserfromgroup(1)

deletes a member from a group in LDAP.

## NAME

ldapdeleteuserfromgroup - deletes a member from a group in LDAP.

## SYNOPSIS

**ldapdeleteuserfromgroup** \<username**\|**dn\> \<groupname**\|**gid\>

## OPTIONS

- **\<username \| dn\>**

  The name of the user to delete. It can be a machine name (with an ending $) or a user name. When working with groupOfNames or groupOfUniqueNames group entries, a full DN can also be provided to permit deletion of an entry that does not exist anymore in the directory.

- **\<groupname \| gid\>**

  The name or the gid of the group that should say goodbye to the user.

## SEE ALSO

[ldapaddusertogroup(1)](/ldapaddusertogroup/1.md), [ldapsetprimarygroup(1)](/ldapsetprimarygroup/1.md), [ldapscripts(5)](/ldapscripts/5.md).

## AVAILABILITY

The ldapscripts are provided under the GNU General Public License v2 (see COPYING for more details). The latest version of the ldapscripts is available on : **http://contribs.martymac.org**

## BUGS

No bug known.
