delete-policy

subtitle

Delete a policy definition for a resource.

version

0.9.159

Description

Delete a policy definition which is applicable on a provided resource. Resource could be a namespace or a table. If ‘’*’’ is provided for namespace, then it deletes all policies across all namespaces. Otherwise, namespace and table must be provided.

Synopsis

  delete-policy
--datahub-crn <value>
--policy-name <value>
--resource-scope <value>
[--cli-input-json <value>]
[--generate-cli-skeleton]

Options

--datahub-crn (string)

The CRN of the CLO Data Hub.

--policy-name (string)

Policy name that needs to be deleted. The version is identified through the resource.

--resource-scope (string)

Represents the hierarchical level (..) at which a policy is defined and needs to be deleted. Give * for catalog level and catalog.namespace.* for namespace level.

--cli-input-json (string)

Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.

--generate-cli-skeleton (boolean)

Prints a sample input JSON to standard output. Note the specified operation is not run if this argument is specified. The sample input can be used as an argument for --cli-input-json.

Output

deletedPolicies -> (integer)

Number of policy versions deleted.

Form Factors

public