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:
- Local Tunnel: If enabled, requests are forwarded to localhost
- HTTP Proxy: If configured, requests are proxied to the target URL
- OpenAPI Spec: If uploaded, responses are generated from the spec
- Default Response: Returns
200 OKwith 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
- 200
- 401
Rules deleted
Unauthenticated - API key is missing or invalid.