DeleteRecommenderCommand

Deactivates and removes a recommender. A deleted recommender can no longer be specified in a GetRecommendations  request.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { PersonalizeClient, DeleteRecommenderCommand } from "@aws-sdk/client-personalize"; // ES Modules import
// const { PersonalizeClient, DeleteRecommenderCommand } = require("@aws-sdk/client-personalize"); // CommonJS import
const client = new PersonalizeClient(config);
const input = { // DeleteRecommenderRequest
  recommenderArn: "STRING_VALUE", // required
};
const command = new DeleteRecommenderCommand(input);
const response = await client.send(command);
// {};

DeleteRecommenderCommand Input

See DeleteRecommenderCommandInput for more details

Parameter
Type
Description
recommenderArn
Required
string | undefined

The Amazon Resource Name (ARN) of the recommender to delete.

DeleteRecommenderCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
InvalidInputException
client

Provide a valid value for the field or parameter.

ResourceInUseException
client

The specified resource is in use.

ResourceNotFoundException
client

Could not find the specified resource.

PersonalizeServiceException
Base exception class for all service exceptions from Personalize service.