How do I use the auth.api.deleteUser endpoint from a server action?

I am trying to figure out how to invoke different auth.api endpoints from my server code in NextJS. I cannot seem to figure out what the implementation should be.
Was this page helpful?