Skip to content
WP Cloud
WP Cloud
    • For Hosts
    • For Agencies
    • For Registrars
    • For Native Hosting
    • Performance
    • Security
    • Real-Time Automated Failover
    • Vertical Scaling and Bursting
    • WordPress Management
    • PanelAlpha Integration: White-Label WordPress Control Panel for Hosts
    • EasyEngine Panel Integration: Visual WordPress Management for WP Cloud
    • FAQs
    • WP Cloud API
    • Partner Portal
    • Documentation
    • New Partner Guide
    • Pressable
    • Convesio
    • Porkbun
    • PanelAlpha
    • Ivapix
    • UNC Greensboro
    • Impressive Hosting
    • Blog
    • Performance Benchmarks
  • Connect With Us
  • Login ↗
Start Here ↗
  • Solutions

    • For Hosts
    • For Agencies
    • For Registrars
    • For Native Hosting
    • Featured Partners

    Features

    • Performance
    • Security
    • Real-Time Automated Failover
    • Vertical Scaling and Bursting
    • WordPress Management

    Integrations

    • PanelAlpha Integration
    • Easy Engine Panel Integration

    Resources

    • Documentation
    • WP Cloud API
    • FAQs
    • Partner Portal
    • New Partner Guide
    • Announcements
    • Changelog
  • Case Studies
    • PressableA case study about how WP Cloud supports Pressable to power millions of page views daily.
    • Convesio
    • Porkbun
    • PanelAlpha
    • Ivapix
    • UNC Greensboro
    • Newspack
    • Inverse Paradox
  • Insights
    • Podcast
    • BlogWP Cloud blog page with latest news and updates about the platform.
    • Performance Benchmarks
  • Connect With Us
  • Login ↗
Start Here ↗

Browse

    • WP Cloud platform overview
    • Onboard and launch with WP Cloud
    • WP Cloud Partner Portal
    • Get support from WP Cloud
    • WP Cloud glossary
    • API Documentation
    • Manage and secure API keys
    • Client SSH
    • WP Cloud API quick start
    • Webhooks
    • Run bulk tasks across sites
      • Manage site domains and aliases
      • Domain verification records
      • TLS certificates
      • Manage custom TLS certificates
      • Cloudflare and WP Cloud
    • Clone a site
    • Configure resources, site type, and billing with site meta
    • Delete a site
    • Persistent data
    • Staging sites
    • Migrate a site to WP Cloud
      • SSH and SFTP access models
      • Client SSH
      • User SSH and SFTP access
      • Database credentials
      • phpMyAdmin
      • ABSPATH
      • Default wp-config.php
      • Site constants
      • Configure redirects and headers with custom-redirects.php
      • Akismet and Jetpack
      • Blocked and unsupported plugins
      • PHP lifecycle and supported versions
      • Symlinks and managed software
      • WordPress versions
      • Install Composer and WP-CLI packages
      • Manage platform software with WP-CLI
      • Useful WP-CLI commands
    • Transactional email
    • WordPress multisite
    • Cron scheduling
    • Decoupled and headless WordPress
      • Edge Cache preload
      • WooCommerce cart caching
      • Page Cache
      • Edge Cache
      • Object Cache
      • Image transformation
      • Offload image sub-sizes
    • Configure lightweight 404s for static files
      • Edge Rules overview
      • Edge Rule types
      • Edge Rule conditions
      • Verify Edge Rules
      • Edge Cache preload
      • WooCommerce cart caching
      • Edge Cache
    • Edge request logs
      • DDoS protection
      • Defensive Mode
      • Rate limiting
      • Network and web application firewalls
      • Bot protection
      • Password protection
      • HTTP and security headers
      • PHP filesystem access permissions
      • Scan a site for malware
    • Backups overview
    • Create an on-demand backup
    • Restore a backup
    • Jetpack backups
      • Error logs
      • Web server logs
      • Edge request logs
    • Usage reporting
    • Metrics
    • Application performance monitoring
    • Automated failover
    • IP ranges
    • Origin and edge servers
    • Server specifications and settings
    • EasyEngine integration
    • PanelAlpha integration
      • White labelling and co-marketing WP Cloud
      • WP Cloud logos
      • Terms of Service & Compliance
      • Prohibited content
      • Copyright infringement and takedown notifications
    • WP Cloud billing
    • WP Cloud for agencies and site networks
    • WP Cloud partner support options
    • Troubleshoot Page and Edge Cache
    • Troubleshoot HTTP 429 and 599 errors
    • WP Cloud HTTP status codes
    • Troubleshoot site performance
    • Cache slow database queries
    • Troubleshoot duplicate core files, wp-config.php, and wp-admin 403 errors
    • Troubleshoot email delivery
    • Repair Yoast indexables
    • Troubleshoot PDF thumbnail generation
    • Troubleshoot TLS certificate provisioning

Updates

  • Changelog
  • WP Cloud Status
  • Announcements
Documentation/Sites/Delete a site

Delete a site

LAST UPDATED

5 months ago

    Deleting a WP Cloud site through the API immediately and permanently removes the site, its Atomic Site ID, files, database, site meta, and associated backups. WP Cloud does not provide a reversible soft-delete operation, so consider all associated backups removed as well.

    Note: Track every site by its Atomic Site ID. This persistent identifier does not change when the site’s domains change, so use it throughout the site lifecycle, including deletion.

    Consider a deletion grace period

    A deletion grace period is an optional partner workflow. Instead of calling Delete Site as soon as a deletion is requested, a partner might retain the site temporarily and manage its pending-deletion state in the partner’s product.

    For a user-driven deletion, provide a clear warning that deletion is permanent and prompt the user to download any required backups before proceeding. Automated expiration deletions may follow a partner’s own retention policy, but the final API deletion is still permanent.

    A partner-owned grace period might use this sequence:

    1. Suspend the site with the suspended site-meta value.
    2. Optionally remove or park its primary and alias domains.
    3. Revoke the customer’s access through the partner’s control panel.
    4. Mark the site as pending deletion in the partner’s product and retain it for the stated recovery period.
    5. Call Delete Site only after the recovery period expires.

    During the grace period, partner API and Client SSH access remain available. To restore the site, reassign its domain if needed, remove the suspended value, and restore customer access in the partner’s product. WP Cloud billing continues while the site exists because suspension does not release its allocated resources.

    Permanently delete the site

    Deleting a site through the API immediately and permanently removes the site and its Atomic Site ID. Consider all associated backups removed as well.

    Send a POST request to the Delete Site endpoint. Use the partner identifier and Atomic Site ID so the request continues to identify the correct site after a domain change:

    curl --fail-with-body --silent --show-error \
      --request POST \
      --header "Auth: ${WP_CLOUD_API_KEY}" \
      "https://atomic-api.wordpress.com/api/v1.0/delete-site/${WP_CLOUD_CLIENT}/${WP_CLOUD_SITE_ID}"Code language: JavaScript (javascript)

    An accepted response contains a job ID:

    {
      "message": "OK",
      "data": {
        "job_id": 9876
      }
    }Code language: JSON / JSON with Comments (json)

    Follow the job with the Get Job Status endpoint until it reaches a terminal state. After it succeeds, confirm that the Atomic Site ID is absent from the partner’s site inventory before removing the local site mapping or assigning its former domain to another site.

    The do_not_delete site-meta value prevents deletion while it is set. A 400 response can mean do_not_delete is set or a deletion is already queued. A 412 response means on-demand backups are blocking deletion. A 423 response means another operation has locked the site.

    Previous Configure resources, site type, and billing with site meta
    Next Persistent data

    Related Guides

    • Clone a site

      Clone a WP Cloud site from an existing site ID or domain, and understand how…

      4 Min.

      READ

    • Manage site domains and aliases

      Manage primary and secondary WP Cloud site domains, control alias canonicalization, retrieve suggested DNS addresses,…

      4 Min.

      READ

    • Configure resources, site type, and billing with site meta

      Configure PHP resources, storage, site type, and billing classification with WP Cloud site meta.

      6 Min.

      READ

    On this page

      Contact support

      Contact us with Support issues and questions related to WP Cloud, the WP Cloud Atomic API, API-key IP allow list changes, Station, and more.

      Check the FAQs

      Have questions? Please visit our FAQ to learn more.

      An Automattic venture

      Work With Us

      Press

      Privacy Policy

      © 2021-2026 Automattic Inc.

      Notifications