{"id":4871,"date":"2024-07-17T08:59:22","date_gmt":"2024-07-17T08:59:22","guid":{"rendered":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/?page_id=4871"},"modified":"2024-07-17T09:14:43","modified_gmt":"2024-07-17T09:14:43","slug":"delete-device","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/actions\/delete-device\/","title":{"rendered":"Delete Device"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2> Delete Device   <\/h2>\n<p>Delete pre-approved devices from Hexnode UEM. <\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" width=\"100%\" class=\"table table-bordered\">\n<thead>\n<tr>\n<th width=\"15%\"> <strong>Argument<\/strong> <\/th>\n<th width=\"12%\"> <strong>Type<\/strong> <\/th>\n<th width=\"30%\"> <strong>Description<\/strong> <\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>devices<\/td>\n<td> Array <\/td>\n<td>Required. IDs of the devices.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"method-example\">\n<div class=\"curl-text\">curl<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\nHTTP Request:<\/p>\n<pre class=\"lang:default decode:true\">POST https:\/\/<portal>.hexnodemdm.com\/api\/v1\/actions\/delete_device\/ \r\nheaders:- \r\nAuthorization: <api key> \r\nContent-Type: application\/json \r\nSample Post Data:- \r\n[{ \r\n\"devices\":[5,6], \r\n}] \r\n<\/pre>\n<p>Shell Command:<\/p>\n<pre class=\"lang:default decode:true\">curl  -H \"Authorization: <your API key>\" -H \"Content-Type: application\/json\" -d '{\"devices\":[5,6]}' https:\/\/<portal>.hexnodemdm.com\/api\/v1\/actions\/delete_device\/  \r\n<\/pre>\n<\/div>\n<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\nHTTP Response:<\/p>\n<pre class=\"lang:default decode:true\">HTTP\/1.1 200 ok\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Delete Device Delete pre-approved devices from Hexnode UEM. Argument Type Description devices Array Required. IDs of the devices. curl HTTP Request: POST https:\/\/.hexnodemdm.com\/api\/v1\/actions\/delete_device\/ headers:- Authorization: Content-Type: application\/json Sample Post Data:- [{ &#8220;devices&#8221;:[5,6], }] Shell Command: curl -H &#8220;Authorization: &#8221; -H &#8220;Content-Type: application\/json&#8221; -d &#8216;{&#8220;devices&#8221;:[5,6]}&#8217; https:\/\/.hexnodemdm.com\/api\/v1\/actions\/delete_device\/ HTTP Response: HTTP\/1.1 200 ok<\/p>\n","protected":false},"author":11,"featured_media":0,"parent":3698,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-4871","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/4871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/comments?post=4871"}],"version-history":[{"count":3,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/4871\/revisions"}],"predecessor-version":[{"id":4890,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/4871\/revisions\/4890"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3698"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=4871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}