Clean Up Resources

Clean Up Resources

To delete the resources deployed via the AWS Cloud Development Kit (CDK), you need to use the cdk destroy command in your CDK project. Here are the basic steps to do this:

  1. Open Terminal or Command Prompt: Open a terminal or command prompt window on your machine.
  2. Navigate to the CDK project directory: Use the cd command to navigate to the directory containing your CDK project.
cd aws_cognito_cross_sites/cdk
  1. Run the cdk destroy command: Once you are in the project directory, use the cdk destroy command to delete the resources. This command will list all the resources that will be deleted and ask for your confirmation before proceeding.
cdk destroy
  1. Confirm resource deletion: When prompted, you need to confirm that you want to delete the resources. This usually requires typing “y” or “yes”.

  2. Wait for the process to complete: AWS CDK will proceed to delete the resources. This process may take several minutes depending on the number and type of resources being deleted.

Cognito

Note that using cdk destroy will delete all resources managed by the CDK stack you are working on. Ensure that you no longer need these resources before proceeding with the deletion.