shisa_principal_remove(3)
β¨ shisa_principal_remove β¨
okay bestie, welcome to the shisa_principal_remove(3) page from the shishi manual π this one is short and sweet and it's giving "delete button energy", so let's get into it π
πΈ NAME πΈ
shisa_principal_remove β it's an API function, babes. that's the whole name. API function. slay.
π¦ SYNOPSIS π¦
#include <shisa.h>
int shisa_principal_remove(Shisa * dbh, const char * realm, const char *
principal);
yep, that's the whole thing. three args, one int coming back at you β¨
π ARGUMENTS π
Shisa * dbhβ the Shisa library handle, which you got fromshisa(). it's literally your all-access pass to the database, no handle no party πconst char * realmβ the name of the realm that the principal belongs to. tell us where you live, bestie πconst char * principalβ the name of the principal you wanna remove. and listen π if you set this toNULL, then only the realmrealmgets removed. just the realm. that's it. that's the vibe.
π DESCRIPTION π
so what does it actually do? it removes all information stored in the database for the given principal, which is written as PRINCIPAL@REALM. gone. deleted. not me clearing out the whole contact π
and when principal is NULL? then the realm realm itself gets removed instead. BUT β and this is the important part, so pay attention bestie β that can only succeed if the realm is already empty of principals. it's a vibe check. if there's still stuff in there, it's not happening. empty it out first, then come back π«Ά
β RETURN VALUE β
returns SHISA_OK if it worked π or an error code if it didn't π
π REPORTING BUGS π
found a bug? don't be shy, tell the people. report bugs to <bug-shishi@gnu.org> π§
- GNU Shishi home page:
http://www.gnu.org/software/shishi/ - General help using GNU software:
http://www.gnu.org/gethelp/
π COPYRIGHT π
Copyright Β© 2002-2022 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
(so basically: go off, share it, just keep the receipts π§Ύβ¨)
π SEE ALSO π
the full documentation for shishi is maintained as a Texinfo manual. if the info and shishi programs are properly installed at your site, then this command
info shishi
should give you access to the complete manual. iykyk π
lowkey reminder: principal = NULL nukes the whole realm, but only if it's already empty. no shortcuts, no cap π«
and that's the page, bestie!! this one came from shishi version 1.0.3, and you just read shisa_principal_remove(3) π go forth and delete responsibly, mwah π«Άβ¨π
π¦ where this page comes from
- debian bookworm: libshisa-dev 1.0.3-1+b1 Β· GPL-3.0-or-later
- debian trixie: libshisa-dev 1.0.3-5+b1 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: libshisa-dev 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: libshisa-dev 1.0.3-5
- ubuntu resolute: libshisa-dev 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: libshisa-dev 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms