Change variable in bot flow

I created a variable in my Bot Flow and marked it as both output and input. Now, I am unable to delete the variable even after removing the Bot Flow call in my Inbound Chat Flow. It says that the Bot Flow is being used in older versions of the Inbound Chat Flow.