Search code examples
emailtemplatescommand-line-interfaceamazon-ses

Delete amazon ses template from cli


How can I delete an amazon ses template using the cli?

I'm trying to use this command from the amazon doc:

aws delete-template --template-name xxx

but does not work from the cli. When I try to list all available options when I hit this command:

aws help

The delete-template is not available. I have the latest version:

aws-cli/1.15.79

https://docs.aws.amazon.com/cli/latest/reference/ses/delete-template.html


Solution

  • Try this:

    aws ses delete-template --template-name templateName
    

    Do not add the .json nor template_ prefix.