After deleting any user by delete user API , other users are not able to generate token , getting 415 Unsupported Media Type error

I am running keycloak 11.0.2 on localhost, the api url should look like http://localhost:8080/auth/
Im able to create token by calling Keycloak API by rest Call in Java and using (“Content-Type”, “application/x-www-form-urlencoded”)
http://localhost:9005/auth/realms/myclient/protocol/openid-connect/token

also I have created many users by below url and able to generate token and logout success.
http://localhost:9005/auth/admin/realms/nandi/users
But after deleting any user by delete user API , other users are not able to generate token , getting 415 Unsupported Media Type error.