curl --request DELETE \
--url https://api.getlago.com/api/v1/features/{code} \
--header 'Authorization: Bearer <token>'{
"feature": {
"code": "seats",
"name": "Number of seats",
"description": "Number of users of the account",
"privileges": [
{
"code": "max",
"name": "Maximum",
"value_type": "integer",
"config": {}
},
{
"code": "max_admins",
"name": "Max Admins",
"value_type": "integer",
"config": {}
},
{
"code": "root",
"name": "Allow root user",
"value_type": "boolean",
"config": {}
},
{
"code": "provider",
"name": "SSO Provider",
"value_type": "select",
"config": {
"select_options": [
"google",
"okta"
]
}
}
],
"created_at": "2025-07-17T12:34:35Z"
}
}This endpoint deletes an existing feature representing an entitlement component of your application. Deleting a feature will remove it from all plans and subscriptions.
curl --request DELETE \
--url https://api.getlago.com/api/v1/features/{code} \
--header 'Authorization: Bearer <token>'{
"feature": {
"code": "seats",
"name": "Number of seats",
"description": "Number of users of the account",
"privileges": [
{
"code": "max",
"name": "Maximum",
"value_type": "integer",
"config": {}
},
{
"code": "max_admins",
"name": "Max Admins",
"value_type": "integer",
"config": {}
},
{
"code": "root",
"name": "Allow root user",
"value_type": "boolean",
"config": {}
},
{
"code": "provider",
"name": "SSO Provider",
"value_type": "select",
"config": {
"select_options": [
"google",
"okta"
]
}
}
],
"created_at": "2025-07-17T12:34:35Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Code of the existing feature.
"seats"
Feature deleted
Show child attributes
Unique code used to identify the feature. Max 255 characters.
"seats"
Name of the feature. Max 255 characters.
"Number of seats"
Description of the feature. Max 600 characters.
"Number of users of the account"
Privileges associated with this feature. Can be empty.
Show child attributes
Unique code for the privilege.
"max"
Display name for the privilege.
"Maximum"
Data type of the privilege value. Default: string
integer, boolean, string, select "integer"
[
{
"code": "max",
"name": "Maximum",
"value_type": "integer",
"config": {}
},
{
"code": "max_admins",
"name": "Max Admins",
"value_type": "integer",
"config": {}
},
{
"code": "root",
"name": "Allow root user",
"value_type": "boolean",
"config": {}
},
{
"code": "provider",
"name": "SSO Provider",
"value_type": "select",
"config": { "select_options": ["google", "okta"] }
}
]Creation date of the feature.
"2025-07-17T12:34:35Z"