Features

Delete Feature

Soft delete a feature and all its references in planFeatures, subscriptionFeatures, and featureMetrics tables. The feature is marked with a deletedAt timestamp rather than being permanently removed.

DELETE
/features/{featureId}

Authorization

bearerAuth
AuthorizationBearer <token>

Use your secret API key as the bearer token

In: header

Path Parameters

featureId*string

Feature ID (e.g., feat_Lo4xGg1Yk9pB2eWv3sNtA)

Match^feat_[A-Za-z0-9]{22}$

Response Body

application/json

application/json

application/json

curl -X DELETE "https://api.getlumen.dev/v1/features/feat_Lo4xGg1Yk9pB2eWv3sNtA"
{
  "success": true,
  "message": "Feature and all its references deleted successfully"
}
{
  "error": "Feature not found"
}
{
  "error": "Failed to delete feature"
}