---
name: "capng_clear"
section: "3"
platform: "linux"
package: "libcap-ng"
version: "0.9.6-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/capng_clear"
---

# capng\_clear(3)

clear chosen capabilities set

## NAME

capng\_clear - clear chosen capabilities set

## SYNOPSIS

**#include \<cap-ng.h\>**

void capng\_clear(capng\_select\_t set);

## DESCRIPTION

capng\_clear sets to 0 all bits in the selected POSIX capabilities set. The options are CAPNG\_SELECT\_CAPS for the traditional capabilities, CAPNG\_SELECT\_BOUNDS for the bounding set, CAPNG\_SELECT\_BOTH if clearing both is desired, CAPNG\_SELECT\_AMBIENT if only operating on the ambient capabilities, or CAPNG\_SELECT\_ALL if clearing all is desired.

## RETURN VALUE

None.

## SEE ALSO

[**capabilities**(7)](/capabilities/7.md)

## AUTHOR

Steve Grubb
