<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div>Hi Sebastian,</div><div id="yui_3_16_0_1_1454077056682_4379"><br></div><div dir="ltr">Thank you for the help. That did the trick.</div><div dir="ltr"><br></div><div dir="ltr">Best Regards,</div><div id="yui_3_16_0_1_1454077056682_4380" dir="ltr"><br></div><div id="yui_3_16_0_1_1454077056682_4381" dir="ltr">Marjan<br></div><div id="yui_3_16_0_1_1454077056682_4323"><span></span></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font face="Arial" size="2"> On Wednesday, January 13, 2016 1:50 PM, h0rst <h0rst@localh0rst.de> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv5375239447"><div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;color:#000000;"><div>Hi!</div><div><br clear="none"></div><div>Afaik it is not possible using the webinterface. However you can use the API plus a little Bash-Scripting</div><div>to do this. You can get all IDs of devices matching a product Class by using the following query:</div><div><br clear="none"></div><div># /devices?projection=_id&query={"summary.productClass":"FRITZ!Box"}<br clear="none">curl -i 'http://localhost:7557/devices?projection=_id&query=%7B%22summary.productClass%22%3A%22FRITZ!Box%22%7D'</div><div><br clear="none"></div><div>To delete a specific device, you can use the following query:</div><div><br clear="none"></div><div># /devices/DEVICE_ID<br clear="none">curl -i 'http://localhost:7557/devices/DEVICE_ID' -X DELETE</div><div><br clear="none"></div><div>To do this kind of stuff, it can be annoying sometimes. Thats why i wrote a Perl-Module to communicate</div><div>with the API. You could find it at (sorry for promoting that here) <a rel="nofollow" shape="rect" target="_blank" href="https://github.com/localh0rst/GenieACS-Perl">https://github.com/localh0rst/GenieACS-Perl</a><br clear="none"></div><div><br clear="none"></div><div>However, it might be a little too oversized for doing it only one time since it has a lot of requierements (moose/etc),</div><div>and is not written very well (i'm an admin, not a programmer).</div><div><br clear="none"></div><div>Kinde regards,</div><div><br clear="none"></div><div>Sebastian</div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><hr id="yiv5375239447zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica, Arial, sans-serif;font-size:12pt;"><b>From: </b>"Marjan Naumovski" <marjan_macka@yahoo.com><br clear="none"><b>To: </b>users@lists.genieacs.com<br clear="none"><b>Sent: </b>Wednesday, January 13, 2016 10:22:14 AM<br clear="none"><b>Subject: </b>Deleting multiple devices<br clear="none"><div><br clear="none"></div><div class="yiv5375239447yqt9014329359" id="yiv5375239447yqt71398"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yiv5375239447yui_3_16_0_1_1452676225788_4475">Hi, everyone<br clear="none"></div><div id="yiv5375239447yui_3_16_0_1_1452676225788_4486"><br clear="none"></div><div id="yiv5375239447yui_3_16_0_1_1452676225788_4478">How can I delete multiple devices? For example delete devices based on product class.</div><div id="yiv5375239447yui_3_16_0_1_1452676225788_4476"><br clear="none"></div><div id="yiv5375239447yui_3_16_0_1_1452676225788_4477"><br clear="none"></div><div id="yiv5375239447yui_3_16_0_1_1452676225788_4506">Best regards<br clear="none"></div><div id="yiv5375239447yui_3_16_0_1_1452676225788_4303"><br clear="none"></div></div></div><br clear="none">_______________________________________________<br clear="none">Users mailing list<br clear="none">Users@lists.genieacs.com<br clear="none">http://lists.genieacs.com/mailman/listinfo/users<br clear="none"></div><div><br clear="none"></div></div></div></div><br><br></div>  </div> </div>  </div></div></body></html>