Skip to main content

Delete all rules

DELETE 

/v2/endpoints/:endpoint/rules

Permanently deletes all mock rules configured for the endpoint. This is a destructive operation that cannot be undone.

Purpose:

  • Reset endpoint to default state (no custom rules)
  • Clean up before importing new rule configurations
  • Remove all mocking behavior and rely on fallback mechanisms

Post-Deletion Behavior: After all rules are deleted, incoming requests will follow the fallback chain:

  1. Local Tunnel: If enabled, requests are forwarded to localhost
  2. HTTP Proxy: If configured, requests are proxied to the target URL
  3. OpenAPI Spec: If uploaded, responses are generated from the spec
  4. Default Response: Returns 200 OK with a default message

Limitations:

  • This operation is irreversible.
  • Does not affect other endpoint settings (CORS, rate limits, etc.)

Best Practices:

  • Export/backup rules before deletion (use GET /rules endpoint)
  • Consider disabling rules instead of deleting if you may need them later
  • Verify the endpoint name before executing this operation

Response: Returns the count of deleted rules and a success flag.

Request

Responses

Rules deleted