How to delete an API in SAP APIM

How to delete an API in SAP APIM

Everyone who is starting to learn SAP APIM, will know that while practicing on the go, we make many demo and test APIs. But what if we want to delete those later, when we learn? What sort of errors we get while doing so and how to get rid of them?

This blog will help you in deleting your test APIs.

This is my first blog on SAP APIM and I too am a beginner and learner of APIM. While I was trying to delete my initially created APIs, it was showing an error like unable to delete an API because it is linked with a product/application. I’d like to share this little learning, which might help you in your journey with API 🙂

Problem:-

Lets assume we want to delete an API, which is published into our Business Hub and we have subscribed to it.

The error above means that, we could only delete the API after the product associated with it gets deleted or we remove this API from the group of APIs published as a product.

But, when we try to delete the product associated with this API

This error states that, this published product is being subscribed by some applicant and it will only be deleted after we delete the application linked to this product.

Which means , to delete an API we first need to delete any application linked to it following with the deletion of the product associated to the API and finally we can delete the main API.

But where could we delete the Application?

All the applications could be seen under this application tab

But there we don’t see any option to delete the same 🙁

Then? How can we delete the same if we cant see it?

Solution:-

The solution is right there in top right corner of the page 🙂

Yes, our API Business Hub…

There in Business Hub, go to My Workspace, where we can view and mange our created Applications.

There we see an option of delete under Actions tab. Go ahead and delete the application.

After successful deletion of the application, we can easily delete our Published Products followed by API deletion.

I hope you too could find this helpful 🙂