Deleting Application token

Hello,

While creating application token by hitting the AWX API with four parameters (username, password, application ID, user ID) I have by mistake entered wrong username, but correct application ID and user ID.

After noticing this, I’ve repeated the procedure with correct username, but now this Application has two tokens, and there is no option the GUI to delete the previous token. Is there some other way to delete this unwanted token?

Regards,
Ivan Todorovic

Did you try the /revoke_token api endpoint? Check the documentation.

-Cesar

Thanks for pointing me into right direction, found this:

/api/v2/tokens/{id}/
Delete an Access Token

Make a DELETE request to this resource to delete this access token.

Parameters