HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/current/lib/surface/scc/postures/delete.yaml
- release_tracks: [ALPHA, GA]
  help_text:
    brief: Delete a Cloud Security Command Center (SCC) posture.
    description: |
      Delete a Cloud Security Command Center (SCC) posture.

      Posture with all its revisions is deleted. Deletion won't be allowed in case any of the versions of the posture is deployed on a workload.
      ETAG can be provided as an optional flag.
    examples: |
      Delete the posture named `organizations/123/locations/global/postures/posture-foo-1` (i.e. a posture in organization `123`, location `global`, with id `posture-foo-1`):

        $ {command} organizations/123/locations/global/postures/posture-foo-1

      Delete the posture named `organizations/123/locations/global/postures/posture-foo-1` (i.e. a posture in organization `123`, location `global`, with id `posture-foo-1`)
      for the ETAG ABcdO1Rf5clu7Yhlkwgelo7Vl4tiqd7Sy5iP5SdkSVU

        $ {command} organizations/123/locations/global/postures/posture-foo-1 --etag=ABcdO1Rf5clu7Yhlkwgelo7Vl4tiqd7Sy5iI5SdkSVU

  request:
    collection: securityposture.organizations.locations.postures
    api_version: v1alpha
    method: delete
    GA:
      api_version: v1

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.scc.resources:posture
      help_text: |
          The name of the posture to be deleted. For example organizations/<organizationID>/locations/<location>/postures/<postureID>.

    params:
    - arg_name: etag
      api_field: etag
      required: false
      help_text: |
          Etag is an optional flag. If the provided Etag doesn't match the server generated Etag, the delete operation won't proceed.

  input:
    confirmation_prompt: |
      You are about to delete a posture [{__name__}]. All its revisions will be deleted.

  async:
    collection: securityposture.organizations.locations.operations