I am able to add an user to my system using:
sudo curl -sS --unix-socket /run/snapd.socket http://localhost/v2/create-user -X POST -d '{"email": "abc@xyz.com", "sudoer": false}'
from command line
What is the counterpart CURL command to delete / remove user?
I am looking for this since I want to use REST API using CURL and JSON to create and delete user dynamically. While I know for create-user
I do not know how to delete
user.