Skip to main content

Hi All



I was trying to deploy a chrome package to the whole company, but unfortunately we found after the deployment a new home directory was added under /Users on everyone's Mac. how can i remove this home directory?
for exapmle, the home directory is /Users/test



i created a shell like the following



!/bin/sh



rm -rf /Users/test



i tried this shell, can remove /Users/test by inputing sudo ./deleletestdirrectory.sh locally,



but none of them got removed on JSS. this is kind of urgent, could someone help on this ?



thanks so much

Just based off the computer you've given, why not try to create a policy that runs a simple command of "rm -rf /Users/test" ? Set to it once per computer.


@bpavlov



how can i simply run command line via JSS? there is no place to fill in a cli rather than a script to choose.



thanks


@Dalmatian


@sibc
thanks it works


Reply