> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pingintel.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Zone Set

> Permanently deletes a zone set and removes its zones from the submission's locations. Coverage options that use the zone set are left without one (`zone_set` null), and their zone terms are recreated for the default zones; the terms entered on their zones are lost. A zone set that's in a coverage option's revision history can't be deleted, nor can one whose locations are still being zoned (`status` P or I), unless its zoning has run so long it's been given up on. For a large schedule, removing the zones from the locations finishes in the background after the zone set is deleted.



## OpenAPI

````yaml https://vision.pingintel.com/api/schema/?format=json delete /api/v1/submission/{pingid}/cat/zone-sets/{zone_set_uuid}
openapi: 3.0.3
info:
  title: Ping.Vision API
  version: v1.0
  description: >
    ### Ping.Vision API


    This API provides convenient, efficient access to Ping Intel's data and
    services. It is designed to be used by developers and data scientists to
    integrate Ping Intel's capabilities into their applications.


    Once SSO is set up with your organization, you can create an Organization or
    Personal API key at https://auth.pingintel.com/org.


    Please see the Python client library
    [pingintel-api](https://pypi.org/project/pingintel-api/) for commandline
    tools and programmatic access, and you

    can refer to the following documentation for details on interacting with the
    system via the HTTP API.
  contact:
    email: support@pingintel.com
    name: Ping Intel
    url: https://www.pingintel.com
servers:
  - url: https://vision.pingintel.com
    description: Ping.Vision API
  - url: https://vision.staging.pingintel.com
    description: Ping.Vision API (staging)
security: []
tags:
  - name: Create Submission
    description: The Create Submission API allows you to add new data into the system.
  - name: Get Submission Data
    description: >-
      The Get Submission Data API lets you list and look up submissions, track
      their events, download their documents, and generate or retrieve their
      outputs.
  - name: Update Submission
    description: >-
      The Update Submission API provides various endpoints to update, modify, or
      act upon existing submissions.
  - name: CAT Modeling
    description: >-
      The CAT Modeling API manages catastrophe modeling setup for a submission:
      coverage options, peril groups, layer structures, and modeling options. It
      also generates Acc/Loc files for CAT models.
  - name: User Memberships
    description: >-
      The User Memberships API allows you to add, remove, and change the role of
      users in different teams, divisions, or companies.
  - name: Reference Data
    description: >-
      The Reference Data API lists lookup values used by other endpoints, such
      as the submission statuses available to a division.
  - name: Account
    description: >-
      The Account API returns information about the authenticated user: their
      identity, permissions, and sitewide settings.
paths:
  /api/v1/submission/{pingid}/cat/zone-sets/{zone_set_uuid}:
    delete:
      tags:
        - CAT Modeling
      summary: Delete Zone Set
      description: >-
        Permanently deletes a zone set and removes its zones from the
        submission's locations. Coverage options that use the zone set are left
        without one (`zone_set` null), and their zone terms are recreated for
        the default zones; the terms entered on their zones are lost. A zone set
        that's in a coverage option's revision history can't be deleted, nor can
        one whose locations are still being zoned (`status` P or I), unless its
        zoning has run so long it's been given up on. For a large schedule,
        removing the zones from the locations finishes in the background after
        the zone set is deleted.
      operationId: api_v1_submission_cat_zone_sets_destroy
      parameters:
        - in: path
          name: pingid
          schema:
            type: string
          required: true
        - in: path
          name: zone_set_uuid
          schema:
            type: string
          required: true
      responses:
        '204':
          description: Deleted.
        '400':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
              examples:
                InRevisionHistory:
                  value:
                    zone_set:
                      - >-
                        This zone set is in the revision history of coverage
                        options Option A, Option B, so it can't be deleted.
                  summary: In revision history
                StillZoning:
                  value:
                    status:
                      - This zone set's locations are still being zoned.
                  summary: Still zoning
          description: ''
      security:
        - authorization_header: []
components:
  securitySchemes:
    authorization_header:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Supports `Token `-prefixed API keys and `Bearer `-prefixed JWT-based
        authentication.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.