Skip to content

rspm delete blocklist-rule#

Command to delete a blocklist rule

rspm delete blocklist-rule [flags]

Examples#

  rspm delete blocklist-rule --id=[rule id]

  # List blocklist rules to find their IDs for deleting
  rspm list blocklist-rules

  # Delete blocklist rule with ID '2'
  rspm delete blocklist-rule --id=2

  # Delete blocklist rule with ID range '2-77'
  rspm delete blocklist-rule --id=2-77

  # Delete blocklist specific rules with IDs '3,4 and 9'
  rspm delete blocklist-rule --id=3,4,9

  # Delete all blocklist rules
  rspm delete blocklist-rule --id=all

Options#

  -h, --help        help for blocklist-rule
      --id string   The rule ID(s). Required.

Options inherited from parent commands#

  -a, --address string             The address of the remote server. If not specified, the PACKAGEMANAGER_ADDRESS environment variable is used.
  -c, --config string              Path to config file
      --insecure-ssl-skip-verify   If true, skip SSL certificate validation. This reduces the security that SSL normally provides.
  -o, --output-format string       Specify the output format 'human' for human-readable output or 'json' for JSON-encoded output. (default "human")
  -v, --verbose                    Provide additional output