libssh2_sftp_unlink(3)

πŸ“¦
version 1.11.1 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

okay bestie, welcome to the libssh2_sftp_unlink page, part of the libssh2 manual set πŸŽ€ she's short, she's sweet, she's a whole convenience macro and honestly? iconic.


🌸 NAME 🌸

libssh2_sftp_unlink β€” it's a lil convenience macro that wraps up libssh2_sftp_unlink_ex(3) calls for you 🫢


✨ SYNOPSIS ✨

like, here's the vibe:

#include <libssh2.h>
#include <libssh2_sftp.h>

int
libssh2_sftp_unlink(LIBSSH2_SFTP *sftp, const char *filename);

yes bestie, two includes, one function-looking macro, no notes πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• β€” this is a macro, not a real function, and it lives in a public libssh2 header file. the way that it works is it's using the underlying function libssh2_sftp_unlink_ex(3) under the hood. she's giving convenience, she's giving shorthand, she's giving "why type the whole thing when the macro will do it for you" 🧚


πŸ’œ RETURN VALUE πŸ’œ

no cap, the answer lives over at libssh2_sftp_unlink_ex(3) β€” go peek there πŸ‘‘


😭 ERRORS 😭

fr fr, same situation β€” libssh2_sftp_unlink_ex(3) has the whole error saga for you 🫢


πŸ”₯ SEE ALSO πŸ”₯


libssh2 version 1.2.4, dated 20 Feb 2010 β€” yeah she's an oldie but she's still slaying, mwah πŸ’‹ periodt.