Logging a user out of Okta using delete sessions API returns 404 error

I need the external users of my web application who click on LOGOUT to stay logged out. What happens right now is, for both external and internal users, the user is automatically logged in back when log out is clicked.

So to address this, I am trying to delete user’s session from Okta when the user clicks on log out by calling this api: https://mydomain.okta.com/api/v1/sessions/me (VERB: DELETE)

But when I do that, I get a 404 resource not found error with the following payload:

“errorCode”: “E0000007”,
“errorSummary”: “Not found: Resource not found: me (Session)”,
“errorLink”: “E0000007”,
“errorId”: “oaeLszYXFduS5u_-vwJ9w0EoQ”,
“errorCauses”: []

This sounds like a bug?

This is the expected behavior. 404 indicates that a session was not found. :wink:

Duh. Thank you for your prompt response!