src orgs delete

deletes an organization.

Examples:

Delete an organization by ID:

$ src orgs delete -id=VXNlcjox

Delete an organization by name:

$ src orgs delete -id=$(src orgs get -f='{{.ID}}' -name=abc-org)

Delete all organizations that match the query

$ src orgs list -f='{{.ID}}' -query=abc-org | xargs -n 1 -I ORGID src orgs delete -id=ORGID

Usage

SH
$ src orgs 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 organization 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