pulumi destroy is throwing an exception when attem...
# aws
pulumi destroy is throwing an exception when attempting to delete an ECR registry:
Copy code
  aws:ecr:Repository (<reponame>):
    error: deleting urn:pulumi:dev::<reponame>::aws:ecr/repository:Repository::<reponame>: 1 error occurred:
        * ECR Repository (<reponame>-b14d0f6) not empty, consider using force_delete: RepositoryNotEmptyException: The repository with name '<reponame>-b14d0f6' in registry with id '<accountId>' cannot be deleted because it still contains images
however, I am setting the force delete flag:
Copy code
repoArgs := &ecr.RepositoryArgs{
                ForceDelete: pulumi.Bool(true),

        repo, err := ecr.NewRepository(ctx, repoName, repoArgs)
        if err != nil {
                return err
is this a bug or am I setting the wrong attribute?