Looks like you are calling st.remove_response()
twice, so your instrument response gets removed twice which isn’t what you want. That function like many others works in place to save memory, which is also stated in docs.
I’ve updated the pinned “Welcome” post with instructions for Markdown, please check that out to make code blocks render properly.