{"id":999,"date":"2018-04-30T10:40:35","date_gmt":"2018-04-30T15:40:35","guid":{"rendered":"http:\/\/sites.williams.edu\/lj1\/?p=999"},"modified":"2018-05-09T13:05:42","modified_gmt":"2018-05-09T18:05:42","slug":"mac-jamf-commands-to-delete-computer-on-jss","status":"publish","type":"post","link":"https:\/\/sites.williams.edu\/lj1\/labs\/mac-jamf-commands-to-delete-computer-on-jss\/","title":{"rendered":"Mac &#8211; JAMF &#8211; Command to delete computer on JSS"},"content":{"rendered":"<p>Commands to remove JAMF management and client from local computer: (you must remove the the MDM management profile BEFORE deleting the JAMF client)<\/p>\n<blockquote>\n<p class=\"m_4769342252333743049gmail-prettyprint m_4769342252333743049gmail-prettyprinted\"><code><span class=\"m_4769342252333743049gmail-pln\">jamf removeMDMProfile<br \/>\n<\/span><\/code><\/p>\n<p class=\"m_4769342252333743049gmail-prettyprint m_4769342252333743049gmail-prettyprinted\"><code><span class=\"m_4769342252333743049gmail-pln\">jamf removeFramework<\/span><\/code><\/p>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<p>Command to remove a computer from the JSS:<\/p>\n<blockquote>\n<p class=\"prettyprint prettyprinted\"><code><span class=\"kwd\">set<\/span><span class=\"pln\"> JSSMAC<\/span><span class=\"pun\">=$(<\/span><span class=\"str\">networksetup -getmacaddress en0)<\/span><br \/>\n<\/code><\/p>\n<p class=\"prettyprint prettyprinted\"><code><span class=\"pln\">curl <\/span><span class=\"pun\">-<\/span><span class=\"pln\">k <\/span><span class=\"pun\">-<\/span><span class=\"pln\">v <\/span><span class=\"pun\">-<\/span><span class=\"pln\">u username<\/span><span class=\"pun\">:<\/span><span class=\"pln\">password https<\/span><span class=\"pun\">:<\/span><span class=\"com\">\/\/yourjss.server.url:8443\/JSSResource\/computers\/macaddress\/$JSSMAC -X DELETE<\/span><\/code><\/p>\n<\/blockquote>\n<p>This can be useful when resetting a computer back to an original state.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"prettyprint prettyprinted\"><code><br \/>\n<\/code><code><br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Commands to remove JAMF management and client from local computer: (you must remove the the MDM management profile BEFORE deleting the JAMF client) jamf removeMDMProfile jamf removeFramework &nbsp; Command to remove a computer from the JSS: set JSSMAC=$(networksetup -getmacaddress en0) &hellip; <a class=\"more-link\" href=\"https:\/\/sites.williams.edu\/lj1\/labs\/mac-jamf-commands-to-delete-computer-on-jss\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[10086],"tags":[73536,10090],"class_list":["post-999","post","type-post","status-publish","format-standard","hentry","category-labs","tag-jamf","tag-mac"],"acf":[],"_links":{"self":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts\/999","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/comments?post=999"}],"version-history":[{"count":5,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts\/999\/revisions"}],"predecessor-version":[{"id":1007,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts\/999\/revisions\/1007"}],"wp:attachment":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/media?parent=999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/categories?post=999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/tags?post=999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}