MCPcopy Create free account
hub / github.com/clawshell/clawshell / delete_system_user

Function delete_system_user

src/platform/macos.rs:105–109  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

103}
104
105pub fn delete_system_user(name: &str) -> Result<(), Error> {
106 let mut command = Command::new("dscl");
107 command.args([".", "-delete", &format!("/Users/{name}")]);
108 command_status(&mut command, "dscl -delete /Users")
109}
110
111pub fn install_autostart_post_write(service_path: &str) -> Result<(), Error> {
112 let mut chown = Command::new("chown");

Callers

nothing calls this directly

Calls 1

command_statusFunction · 0.85

Tested by

no test coverage detected