diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/admin/UserManagementAdminServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/admin/UserManagementAdminServiceImpl.java index d695619b0b0..f5dbb3d3b6d 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/admin/UserManagementAdminServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/admin/UserManagementAdminServiceImpl.java @@ -54,6 +54,8 @@ public class UserManagementAdminServiceImpl implements UserManagementAdminServic return CredentialManagementResponseBuilder.buildResetPasswordResponse(user, credentials); } + @DELETE + @Path("/{username}/devices") @Override public Response deleteDeviceOfUser(@PathParam("username") String username) { try { @@ -66,6 +68,8 @@ public class UserManagementAdminServiceImpl implements UserManagementAdminServic } } + @DELETE + @Path("/type/{device-type}/id/{device-id}") @Override public Response deleteDevice(@PathParam("device-type") @Size(max = 45) String deviceType, @PathParam("device-id") @Size(max = 45) String deviceId) {