diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js index 4963ffc5b12..8230ad01cee 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js @@ -895,7 +895,7 @@ function removeDevices(deviceIdentifiers) { var serviceURL = "/api/device-mgt/v1.0/devices/type/" + deviceIdentifiers[0].type + "/id/" + deviceIdentifiers[0].id; invokerUtil.delete(serviceURL, function (message) { if (deviceIdentifiers.length > 1) { - deviceIdentifiers.slice(1, deviceIdentifiers.length); + deviceIdentifiers.shift(); removeDevices(deviceIdentifiers); } else { $(modalPopupContent).html($('#remove-device-200-content').html());