In Salesforce setup, go to Feature Settings > Service > Messaging > Messaging Settings and choose the channel you created
Choose the dropdown arrow in the upper-right of the screen and choose Deactivate
In Messaging Settings, choose Edit and then the unlink symbol to the right of the Conversation Channel Definition field. Choose Unlink in the confirmation window and save changes.
Delete the Lightning app
Go to Apps > App Manager. Find the row with the Lightning app you created, choose the arrow in the rightmost column, and choose Delete. Confirm Delete.
Uninstall the managed package
Go to Apps > Packaging > Installed Packages. Find Amazon Connect for Salesforce package and choose Uninstall
Choose Do not save a copy of this package’s data after uninstall and check the confirmation box before choosing Uninstall. You will get an email confirmation once the package has been successfully uninstalled.
Clean-up remaining Salesforce resources
Delete named credentials
Go to Security > Named Credentials. For each of the following credentials, select the dropdown arrow and choose delete:
SCC_GLOBAL_CFN_NC
SCC_GLOBAL_CONNECT_VOICE_SERVICE_NC
SCC_GLOBAL_INTERACTION_SERVICE_NC
SCC_GLOBAL_S3_CALL_NC
SCC_CONTACT_CENTER_CONNECT_API_NC_{ID}
SCC_CONTACT_CENTER_CFN_NC_{ID}
Choose the External Credentials tab and delete the following:
SCC_GLOBAL_CFN_EC
SCC_GLOBAL_INTERACTION_SERVICE_EC
SCC_GLOBAL_S3_EC
SCC_CONTACT_CENTER_CONNECT_API_EC_{ID}
SCC_CONTACT_CENTER_CFN_EC_{ID}
Delete certificates
Go to Security > Certificate and Key Management
Find the rows containing scc_certificate_{TIMESTAMP} and SCC_PLACE_HOLDER_CERTIFICATE and choose Delete.
Remove permission sets from admin and agent users
Go to Users > Users. Choose the administrator and agent users, hover over Permission Set Assignments and choose Delete next to the SCC Administrator and SCC Agent permission sets.
Deactivate API Access User
Go to Users > Users. Find ApiAccessUser, SCCAC and choose Edit.
Uncheck Active and choose OK.
Delete permission sets
Go to Users > Permission Sets. Find the SCC Administrator and SCC Agent sets that you cloned and choose Delete.
Delete Connected App
Go to Apps > App Manager. Find the awsscc GLOBAL_CONNECTED_APP, choose the arrow in the rightmost column, and choose View. Choose Delete and confirm.
Clean-up AWS resources
Log into your Amazon Connect instance and go to Users > Routing Profiles. Select the Basic Routing Profile and remove the SCCAC-BasicQueue-<contactCenterId> from under Queues and the Default outbound queue.
Go to Routing > Queues. Delete the SCCAC-BasicQueue-<contactCenterId>. Then go to Routing > Hours of operation and delete the SCCAC-BasicQueueHoursOfOperation-<contactCenterId>.
Navigate to CloudFormation and delete the SCC-CONTACT-CENTER-STACK-{ID} in the AWS region where you created your contact center.
Delete the SCC-CONTACT-CENTER-SECRET-REPLICATION-STACK-{ID} stack in us-east-1.
Go to S3 and empty and delete the sccac-{YOUR_AWS_ACCOUNT}-bucket-<SalesforceOrgId> bucket.
Return to CloudFormation and delete the following stacks: