mkasun@winterfell~/sandbox/netmaker> curl -X DELETE -H "authorization: Bearer secretkey"
http://localhost:8081/users/admin -D -
HTTP/1.1 401 Unauthorized
Content-Type: application/json
Date: Sat, 27 Mar 2021 22:50:40 GMT
Content-Length: 58
{"Code":401,"Message":"W1R3: Error Verifying Auth Token."}⏎ mkasun@winterfell~/sandbox/netmaker> curl -X DELETE -H "authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJc0FkbWluIjp0cnVlLCJVc2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjE2Nzg5ODg1fQ.YwzicKnNZ4GtnyYdzF90gSt_efy6MVNLQ1PLNuBQfOM"
http://localhost:8081/users/admin -D -
HTTP/1.1 200 OK
Content-Type: application/json
Date: Sat, 27 Mar 2021 22:50:45 GMT
Content-Length: 17
"admin deleted."