(name, path="/etc/systemd/system")
Uninstall unit with given name
Uninstall unit with given name
Uninstall unit with given name
def uninstall_unit(name, path="/etc/systemd/system"):
    """
    Uninstall unit with given name
    """
    subprocess.run(["rm", os.path.join(path, name)], check=True)
def uninstall_unit ( name , path = "/etc/systemd/system" ) : subprocess . run ( [ "rm" , os . path . join ( path , name ) ] , check = True )