It is not clear how to delete a routing profile, documentation is a rabbit hole.

0

I would like to delete a few routing profiles that were created when the instance was stood up. However the documentation is not clear and sends you through 10 other docs that have nothing to do with deleting a routing profile.

Code does not mean anything to me if I do not know where or how to use it. CLI does not work, and what API am I using? or do I need to create one? Do I need to create one every time I need to delete a routing profile? Just make a delete button with rules that cannot be removed if there are queues or agents assigned, I do not get why it is so difficult to clean up routing profiles.

https://docs.aws.amazon.com/connect/latest/adminguide/delete-routing-profiles.html#:~:text=To%20delete%20a%20routing%20profile,the%20Amazon%20Connect%20admin%20website.

https://docs.aws.amazon.com/cli/latest/reference/connect/delete-routing-profile.html

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/connect/delete-routing-profile.html

https://docs.aws.amazon.com/connect/latest/APIReference/API_DeleteRoutingProfile.html

3 Answers
0
Accepted Answer

Hi

The document says that it is not possible to delete a routing profile by using the Amazon Connect admin website. However, you can delete a routing profile from your Amazon Connect instance using the DeleteRoutingProfile API or the delete-routing-profile AWS CLI

So you have options AWS CLI or API but Not possible from Console

aws connect delete-routing-profile \ --instance-id <your-connect-instance-id> \ --routing-profile-id <routing-profile-id-to-delete>

*Replace <your-connect-instance-id> with the ID of your Amazon Connect instance. You can find this ID in the Amazon Resource Name (ARN) of the instance. Replace <routing-profile-id-to-delete> *

Refer Official Document: https://docs.aws.amazon.com/cli/latest/reference/connect/delete-routing-profile.html

profile picture
EXPERT
GK
answered a month ago
  • Do I use the full ARN for the instance ID just the part that says /instance/*******? or just the account number? Where do I locate a routing profile ID? is that not the name?

  • aws connect delete-routing-profile
    --instance-id <your-connect-instance-id-without-ARN> \ --routing-profile-id <routing-profile-id-to-delete>

  • When using the CLI cloudshell I am inputting the following details. I am assuming the ID for the routing profile is the end part of the URL? There is no documentation to disclose that.

    aws connect delete-routing-profile / --094c****-57**-4e**-b9**-6bb0******** / --d7cf****-14**-4a**-a2**-71a5********

    usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters] To see help text, you can run:

    aws help aws <command> help aws <command> <subcommand> help

    aws: error: the following arguments are required: --instance-id, --routing-profile-id

  • You need the arguments and then the IDs so --argument 1234-1234-1324 is required for both.

0

I can understand your frustration and things are getting better. Remember that Connect is a baby when it comes to being a contact center platform so there are some things that are a bit rough around the edges.

As to your point, here's the best way to delete a routing profile (RP).

  1. Install the CLI. https://aws.amazon.com/cli/
  2. Login to the CLI with an account that has access to the instance that contains the RP. https://docs.aws.amazon.com/signin/latest/userguide/command-line-sign-in.html
  3. Run command "aws connect delete-routing-profile --instance-id <value> --routing-profile-id <value>" Hopefully the instance ID value is obvious to get, but the RP ID you can click on the routing profile and in the URL you'll see the id you need.

david

profile picture
dmacias
answered a month ago
  • Do I use the full ARN for the instance ID just the part that says /instance/*******? or just the account number? Where do I locate a routing profile ID? is that not the name?

0

When using the CLI cloudshell I am inputting the following details. I am assuming the ID for the routing profile is the end part of the URL? There is no documentation to disclose that.

aws connect delete-routing-profile / --094c****-57**-4e**-b9**-6bb0******** / --d7cf****-14**-4a**-a2**-71a5********

usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters] To see help text, you can run:

aws help aws <command> help aws <command> <subcommand> help

aws: error: the following arguments are required: --instance-id, --routing-profile-id

answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions