Delete users created by admin API

Hello,
I’m trying to implement a functionally that removes created users by Rest Admin API. But nowhere in the docs I see a delete Rest Option. How can I remove a created user by the admin API? I saw also that on advanced it’s possible to create and removes users and already tried by that path but doesn’t work and honestly doesn’t makes sense to me that an admin user is removed by a not admin API.

The DELETE command is right there in the docs:

https://tyk.io/advanced-api-v0-9/users/#delete-user:f0f8c2ffd220340c61a6efb6a9323904

The user you are deleting must belong to the same Org… as I said earlier, admin users are not recommended, only another admin user can delete a non-org-affiliated account.

A better way to create / manage / delete users programatically is to not use Admin users at all, instead use the admin API to create an affilliated, floating user - do the things you need to do, then use that account to delete itself.

Cheers,
Martin