src repos delete-metadata

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
-insecure-skip-verifySkip validation of TLS certificates against trusted chainsfalse
-keyThe name of the metadata key to be deleted (required)
-repoThe ID of the repo with the key-value pair metadata to be deleted (required if -repo-name is not specified)
-repo-nameThe name of the repo to add the key-value pair metadata to (required if -repo is not specified)
-traceLog the trace ID for requests. See docsfalse
-user-agent-telemetryInclude the operating system and architecture in the User-Agent sent with requests to Sourcegraphtrue

Usage

SHELL
Usage of 'src repos delete-metadata': -dump-requests Log GraphQL requests and responses to stdout -get-curl Print the curl command for executing this query and exit (WARNING: includes printing your access token!) -insecure-skip-verify Skip validation of TLS certificates against trusted chains -key string The name of the metadata key to be deleted (required) -repo string The ID of the repo with the key-value pair metadata to be deleted (required if -repo-name is not specified) -repo-name string The name of the repo to add the key-value pair metadata to (required if -repo is not specified) -trace Log the trace ID for requests. See https://sourcegraph.com/docs/admin/observability/tracing -user-agent-telemetry Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph (default true) Examples: Delete a key-value pair metadata from a repository: $ src repos delete-metadata -repo=repoID -key=mykey [DEPRECATED] Note 'delete-kvp' is deprecated and will be removed in future release. Use 'delete-metadata' instead.