Jupyter Notebook doesn't work and my agent needs to be deleted on AWS

The notebook failed to give the same results as in the video and when I tried to restart the kernel to re-execute the code, I am now getting an error saying that my agent already exists. I tried to delete the agent by looking at the api documentation ( AgentsforBedrock / Client / delete_agent) but the platform says I don’t have permission to delete agents. So now I’m stuck and can’t move forward in the course.

Please help!

Thanks, We’re adding some code to clear things at the top of the notebook. As things are, state will be cleared in 24 hours.

Great, thanks! This was also an issue on the lesson 1 notebook. It will be great to have code to clear things on every lesson notebook, just in case.

Hello there @ajequant. Thanks for the feedback. I have now rolled out reset code to each of the notebooks. So now each notebook can be kernel reset and re-run from the start! Thanks for helping to make the course better for everyone.

1 Like