Unable to figure out how to remove Config Profile through command line

japplewood
New Contributor

I can get the profiles that exist to show with the command: sudo /usr/bin/profiles -P, but I can't remove one of the profiles 'cause it says "No such file or directory".

24nlockwood:Users nlockwood24$ sudo /usr/bin/profiles -P
Password:
_computerlevel[1] attribute: profileIdentifier: com.filewave.profile
_computerlevel[2] attribute: profileIdentifier: Dphan-PC.7b3ffa1f-0b7a-4001-8f0b-e0331f4bd1de.Configuration.7b3ffa1f-0b7a-4001-8f0b-e0331f4bd1de
There are 2 configuration profiles installed
24nlockwood:Users nlockwood24$ rm Dphan-PC.7b3ffa1f-0b7a-4001-8f0b-e0331f4bd1de.Configuration.7b3ffa1f-0b7a-4001-8f0b-e0331f4bd1de
rm: Dphan-PC.7b3ffa1f-0b7a-4001-8f0b-e0331f4bd1de.Configuration.7b3ffa1f-0b7a-4001-8f0b-e0331f4bd1de: No such file or directory

I figure this should be obvious, but I can't get it to work. Thanks.

2 REPLIES 2

jacob_evans
New Contributor II

Someone with similar issue created a thread about this. Do these commands work at all?

https://www.jamf.com/jamf-nation/discussions/7096/removing-configuration-profiles-via-command-line

seann
Contributor

You can't remove a configuration profile by using 'rm'... it will have to be via the profiles command try 'man profiles' to see valid args