/** * Deletes the Credential specified by the "credentialId" path parameter. * * @param credentialId * The id of the Credential to be deleted. * @return HTTP 200 if operation has completed successfully. * @throws Exception * Whenever something bad happens. See specific {@link KapuaService} exceptions. * @since 1.0.0 */ @ApiOperation(nickname = "credentialDelete", value = "Delete a Credential", notes = "Deletes the Credential specified by the \"credentialId\" path parameter.") @DELETE @Path("{credentialId}") public Response deleteCredential( @ApiParam(value = "The ScopeId of the Credential to delete.", required = true, defaultValue = DEFAULT_SCOPE_ID) @PathParam("scopeId") ScopeId scopeId, @ApiParam(value = "The id of the Credential to be deleted", required = true) @PathParam("credentialId") EntityId credentialId) throws Exception { credentialService.delete(scopeId, credentialId); return returnOk(); }