curl --request DELETE \
--url https://api.example.com/api/ai/keyRemove the stored Gemini API key
curl --request DELETE \
--url https://api.example.com/api/ai/key204 No Content on success with an empty response body.
curl -X DELETE https://api.example.com/api/ai/key \
-H "Authorization: Bearer YOUR_TOKEN_HERE"
HTTP/1.1 204 No Content
{
"error": "Unauthorized",
"message": "Invalid or missing authentication token"
}
{
"error": "Not Found",
"message": "User not found"
}
geminiKey field to null in the user’s account