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

# Delete all demo users and screens for a sage

> Permanently deletes all `ss_demo_user` posts and their linked
`ss_screen` posts for the specified sage. Irreversible.

Requires `ss_admin_all` or `power_user` capability.




## OpenAPI

````yaml /openapi/private/specs/wp/wp-ajax-misc.yml post /wp-admin/admin-ajax.php?action=sagescreen_clear_demo_entries
openapi: 3.1.0
info:
  title: SageScreen — Misc AJAX Modules (User · Council · Billing · Splash · Demo)
  version: 1.0.0
servers:
  - url: https://{domain}/wp-json/sagescreen/v1
    description: WordPress REST API
    variables:
      domain:
        default: api.sagescreen.app
security: []
tags:
  - name: User – REST
    description: Zapier-facing REST endpoints
  - name: User – AJAX
    description: Council user management AJAX endpoints
  - name: User – Profile
    description: Self-service profile updates
  - name: Council – REST
    description: Zapier-facing REST endpoints for council data sync
  - name: Council – AJAX
    description: Council user and sage management AJAX endpoints
  - name: Billing – Stripe
    description: Stripe webhook and subscription endpoints
  - name: Billing – Broadcast
    description: Postmark broadcast unsubscribe endpoint
  - name: Billing – Pipedrive
    description: Pipedrive CRM ID set-* webhook endpoints (called by Zapier)
  - name: Billing – AJAX
    description: Credit ledger, reactivation, and portal AJAX endpoints
  - name: Splash
    description: Splash banner AJAX endpoints
  - name: Demo
    description: Demo signup and management AJAX endpoints
  - name: CSV Upload
    description: Bulk candidate CSV upload
paths:
  /wp-admin/admin-ajax.php?action=sagescreen_clear_demo_entries:
    post:
      tags:
        - Demo
      summary: Delete all demo users and screens for a sage
      description: |
        Permanently deletes all `ss_demo_user` posts and their linked
        `ss_screen` posts for the specified sage. Irreversible.

        Requires `ss_admin_all` or `power_user` capability.
      operationId: ajaxClearDemoEntries
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
                - action
                - nonce
                - council_sage_id
              properties:
                action:
                  type: string
                  const: sagescreen_clear_demo_entries
                nonce:
                  type: string
                  description: >-
                    WP nonce for `sagescreen_admin_nonce` or
                    `sagescreen_frontend_nonce`
                council_sage_id:
                  type: integer
                  description: Post ID of `ss_council_sage`
                  examples:
                    - 101
      responses:
        '200':
          description: Clear result
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/ClearDemoEntriesSuccess'
                  - $ref: '#/components/schemas/DemoInternalAjaxErrorResponse'
              examples:
                success:
                  summary: 5 entries cleared
                  value:
                    success: true
                    message: Cleared 5 demo entries
                    deleted_users: 5
                    deleted_screens: 5
                noPermission:
                  summary: Insufficient permissions
                  value:
                    success: false
                    message: Insufficient permissions
                invalidSage:
                  summary: Invalid sage
                  value:
                    success: false
                    message: Invalid council sage
      security:
        - wpAjaxNonce: []
components:
  schemas:
    ClearDemoEntriesSuccess:
      type: object
      properties:
        success:
          type: boolean
          const: true
        message:
          type: string
          examples:
            - Cleared 5 demo entries
        deleted_users:
          type: integer
          examples:
            - 5
        deleted_screens:
          type: integer
          examples:
            - 5
    DemoInternalAjaxErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          const: false
        message:
          type: string
          examples:
            - Invalid security token
  securitySchemes:
    wpAjaxNonce:
      type: apiKey
      in: query
      name: nonce
      description: WordPress AJAX nonce (passed as form field, verified per-action)

````