php8.5
Home/ Manual/ ldap / functions/ ldap_delete

ldap_delete

PHP function Edit on GitHub ✎

(PHP 4, PHP 5, PHP 7, PHP 8)

Delete an entry from a directory

Description

ldap_delete(LDAP\Connection $ldap, string $dn, array|null $controls = null): bool

Deletes a particular entry in LDAP directory.

Parameters

ldap

Ldap

dn

The distinguished name of an LDAP entity.

controls

Array of LDAP Controls to send with the request.

Return Values

Success

Changelog

VersionDescription
7.3.0Support for controls added

See Also

Source: reference/ldap/functions/ldap-delete.xml · from the official PHP manual (php/doc-en)