title: WSO2 am 1.10.0: delete and then recreate an API: "Error occurred while adding the API. A duplicate API already exists for {CONTEXT}"
body: <p>I added an API and later on remove it in /carbon management console. Now I wanted to add it back and it failed with "wso2 am 1.10.0: Error occurred while adding the API. A duplicate API already exists for {CONTEXT}".</p>
  
  <p>I even manually went to database and manually removed the API from all related tables, including AM_API. I also manually removed the related file under /repository/deployment/server/synapse-configs/default/api
  .</p>
  
  <p>So what else I have to do so I can recreate that API without the above error? Is this a bug in this version? </p>
  
  <p>Related discussion: <a href="https://stackoverflow.com/questions/24440558/wso2-api-manager-context-management">WSO2 API Manager - context management</a> (Is this issue coming back in Version 1.10.0?)</p>