Overview
Delete a feature by its ID. Features that are used in products or by customers cannot be deleted - archive them instead.Endpoint
Request Body
string
required
The unique identifier of the feature to delete.Example:
"old-feature", "test-feature"Response
Returns a success flag confirming the deletion.boolean
Whether the feature was successfully deleted.
Examples
Delete an Unused Feature
Request
Response
Important Restrictions
When to Delete vs Archive
Delete When:
- The feature was created for testing and is not in use
- You made a mistake during feature creation
- The feature was never added to any products
- You’re cleaning up duplicate or unused features
Archive When:
- The feature is being used by any customers
- The feature is part of any product or plan
- You want to deprecate a feature but maintain backward compatibility
- You might need the feature configuration later
Workflow Example
Safe Delete Workflow
Use Cases
Clean Up Test Features
Remove features created during development and testing that are no longer needed.
Fix Mistakes
Delete incorrectly configured features that haven’t been used yet.
Remove Duplicates
Clean up duplicate features created by mistake.
Simplify Configuration
Remove unused features to keep your feature list clean and manageable.
Error Responses
string
Error code identifying the type of error.
string
Human-readable error message.
Common Errors
feature_not_found- No feature exists with this IDfeature_in_use- Cannot delete because it’s used in products or by customersfeature_referenced- Cannot delete because it’s referenced in a credit systeminvalid_feature_id- Feature ID format is invalid