src users delete

deletes a user account.

Examples:

Delete a user account by ID:

$ src users delete -id=VXNlcjox

Delete a user account by username:

$ src users delete -id=$(src users get -f='{{.ID}}' -username=alice)

Delete all user accounts that match the query:

$ src users list -f='{{.ID}}' -query=alice | xargs -n 1 -I USERID src users delete -id=USERID

Usage

SH
$ src users delete [options]

Flags

NameDescriptionDefault Value
--dump-requestsLog GraphQL requests and responses to stdoutfalse
--get-curlPrint the curl command for executing this query and exit (WARNING: includes printing your access token!)false
--idThe ID of the user to delete.``
--insecure-skip-verifySkip validation of TLS certificates against trusted chainsfalse
--traceLog the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracingfalse
--user-agent-telemetryInclude the operating system and architecture in the User-Agent sent with requests to Sourcegraphtrue