userFields. The caller must be a community owner or administrator. The path accepts the stable key or 24-character field ObjectId.{
"meta": { "status": "success", "statusCode": 200, "code": "USER_FIELD_DELETED" },
"message": "Delete user field api success.",
"data": {
"_id": "<fieldObjectId>",
"name": "Trading Volume",
"field": "trading_volume",
"type": "numerical",
"defaultValue": 0,
"isCustom": true
}
}404 USER_FIELD_NOT_FOUND confirms the definition is absent. If history retention matters, query the relevant history scope separately; the definition readback alone does not prove history deletion.400 INVALID_COMMUNITY_ID or INVALID_FIELD_IDENTIFIER: correct the path.401 AUTHENTICATION_REQUIRED / 403 API_KEY_PERMISSION_DENIED: fix key or owner/admin access.404 USER_FIELD_NOT_FOUND: the definition is already absent or the identifier is wrong. Re-list fields.409 USER_FIELD_DELETE_FORBIDDEN: built-in/protected definition cannot be removed.500 USER_FIELD_OPERATION_FAILED: read back before repeating the deletion.curl --location --request DELETE 'https://api.returning.ai/v1/communities/6502c9e514a3e564c5c09c0a/user-fields/trading_volume' \
--header 'Authorization: Bearer <apiKey>'{
"meta": {
"status": "success",
"statusCode": 200,
"code": "USER_FIELD_DELETED"
},
"message": "Delete user field api success.",
"data": {
"_id": "66f000000000000000000010",
"name": "Trading Volume",
"field": "trading_volume",
"type": "numerical",
"defaultValue": 0,
"isCustom": true
}
}