---
name: "libssh2_publickey_remove"
section: "3"
platform: "linux"
package: "libssh2"
version: "1.11.1-7"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libssh2_publickey_remove"
---

# libssh2\_publickey\_remove(3)

convenience macro for libssh2\_publickey\_remove\_ex(3) calls

## NAME

libssh2\_publickey\_remove - convenience macro for *[libssh2\_publickey\_remove\_ex(3)](/libssh2_publickey_remove_ex/3.md)* calls

## SYNOPSIS

```
#include <libssh2.h>
int
libssh2_publickey_remove(LIBSSH2_PUBLICKEY *pkey,
                         const unsigned char *name, unsigned long name_len,
                         const unsigned char *blob, unsigned long blob_len);
```

## DESCRIPTION

This is a macro defined in a public libssh2 header file that is using the underlying function *[libssh2\_publickey\_remove\_ex(3)](/libssh2_publickey_remove_ex/3.md)*.

## RETURN VALUE

See *[libssh2\_publickey\_remove\_ex(3)](/libssh2_publickey_remove_ex/3.md)*

## ERRORS

See *[libssh2\_publickey\_remove\_ex(3)](/libssh2_publickey_remove_ex/3.md)*

## SEE ALSO

**[libssh2\_publickey\_remove\_ex(3)](/libssh2_publickey_remove_ex/3.md)**
