Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

One Appfire Support Knowledge Base
Results will update as you type.
  • License-related documentation
  • Product Categories
    • Administrative Tools
      • Gaia for Jira- Project Template Manager
      • Configuration Manager for Jira - Botron Software
        • How to fix Integrity Check violation in reference to missing custom fields from the database
        • How to fix a sprint's activated date which is not exported as part of a migration
        • Creating a Snapshot for a Single Jira Project Using the REST API
        • Attachments cannot be migrated during snapshot deployment in CMJ (Data Center)
        • Integrity Check for Jira
        • Power Admin
        • Issue Matrix
        • Configuration Manager for JIRA
        • Configuration Manager for Jira Cloud
        • Configuration Manager Cloud Migration Tool
        • Will Configuration Manager for Jira (CMJ) migrate commented Jira issue links?
        • How to address unlabelled Epic names after project transfer via Configuration Manager for Jira(CMJ)
        • How to fix the issue when a snapshot deployment fails with an error java.io.IOException: Failed to parse snapshot archive
        • How to stop a long running snapshot in Configuration Manager for Jira
        • How to resolve API Token Validation Issues for Configuration Manager for Jira (CMJ)
        • How to rename an unlocked custom field
        • How to convert a snapshot file from .bin to .xml using CMJ REST API
        • How to resolve errors when migrating projects that result in incomplete deployments or undefined issues
        • How to delete a Snapshot Using CMJ REST API
        • Configuration Manager for Jira - Error deploying snapshot (java.sql.SQLException: ORA-01653: unable to extend table)
        • How to create a snapshot or deploy a snapshot using the CMJ REST API
        • Attachment Visibility after Deploying a Snapshot with Configuration Manager for Jira
      • Announcer for Bitbucket Server
      • Announcer for JIRA
      • Delegated Project Creator for Profields
      • Two Factor Authentication for Bitbucket
      • Agile Board Template Builder for JIRA
      • Delegated Group Management in Confluence
      • Delegated Group Management in JIRA
      • Delegated Project Admin Pro for JIRA
      • Delegated Project Creator for JIRA Agile
      • Announcer for Confluence
      • Delegated Project Creator for JIRA
      • The Extension Wizard for Bitbucket Cloud
      • Project Configurator for Jira
      • Prometheus Exporter
    • BI and Reporting Apps
    • Publishing
    • Agile
    • Document Management
    • ITSM
    • Developer Tools
    • Workflow & Automation
    • Integrations KB's
  • Migration Support
  • General Articles
  • KB [KBS]
  • Mohami Support Knowledge Base [SUPPORTM]
  • Feedthree Support [SUPPORTFT]
  • KB : Articles
  • Bob Swift Support Knowledge Base [SUPPORTS]
  • Wittified Support Knowledge Base [SUPPORTW]
  • Digital Toucan Knowledge Base
  • Knowledge Base
  • QotiLabs Knowledge Base
  • Untitled Smart Link (3)
  • SAFe EPIC to Feature Translator for Jira
  • How do I find the SEN (Support Entitlement Number) for an Appfire app in the Server / Data Center Platform?
  • Power Scripts DC: How to hide Tempo work attributes in the Tempo UI?
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    How to delete a Snapshot Using CMJ REST API
    Updated Mar 18

    How to delete a Snapshot Using CMJ REST API

    This article provides step-by-step instructions for deleting a Configuration Manager for Jira (CMJ) snapshot using the CMJ REST API.

    To delete a snapshot using the CMJ REST API, follow these steps:

    1. Identify the Snapshot ID

    Before deleting a snapshot, you need to obtain the snapshot ID. You can retrieve this ID from:

    • The result of the Create Snapshot API call.

    • The CMJ audit log by hovering over the snapshot entry in the UI.

    2. Use the DELETE API Request

    Once you have the snapshot ID, you can execute the following API call:

    CURL Command:

    curl -u admin:admin -i -H "Content-Type: application/json" -X DELETE <jira-base-url>/rest/configuration-manager/api/1.6/snapshots/<snapshot-id>

    Replace:

    • <jira-base-url> with your Jira instance URL.

    • <snapshot-id> with the actual ID of the snapshot.

    3. Example Request

    If your Jira instance is running on https://your-jira-instance.com, and the snapshot ID is 1234, the command will be:

    curl -u admin:admin -i -H "Content-Type: application/json" -X DELETE https://your-jira-instance.com/rest/configuration-manager/api/1.6/snapshots/1234

    4. Expected Response

    • Success (200 OK): The snapshot will be deleted successfully.

    • Error (404 Not Found): If the snapshot does not exist or the ID is incorrect.

    • Error (403 Forbidden): If the user does not have sufficient permissions.

    5. Important Considerations

    • The DELETE request should be executed on the source instance where the snapshot was created, not on the destination instance.

    • If the snapshot is deployed, it is no longer stored as a snapshot in the target instance. Instead, it becomes part of the configuration.

     

    {"serverDuration": 12, "requestCorrelationId": "354e2f733c6f4d9fa3e3b666d0ac10a7"}