{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/api-reference/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["api-container","api-content","endpoint","api-examples","tabs","tab","code-group"]},"redocly_category":"API Reference","searchWeight":120,"type":"markdown"},"seo":{"title":"Delete a style profile","description":"Complete API reference and documentation for Freddy AI-powered backend system by Aitronos","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"delete-a-style-profile","__idx":0},"children":["Delete a style profile"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Soft-delete a custom profile. Platform rows cannot be deleted (422). A personality still attached to an assistant returns 409 — detach it first. Requires ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["create_assistants"]},". A ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["kind=note"]}," row returns 404 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FEATURE_NOT_ENABLED"]}," when the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["style_notes"]}," beta feature switch is off. When the switch cannot be read right now, a note request returns 503 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["STYLE_NOTES_SWITCH_UNRESOLVED"]}," with a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Retry-After"]}," header: retry, do not treat it as off."]},{"$$mdtype":"Tag","name":"ApiContainer","attributes":{},"children":[{"$$mdtype":"Tag","name":"ApiContent","attributes":{},"children":[{"$$mdtype":"Tag","name":"Endpoint","attributes":{"method":"DELETE","path":"https://api.aitronos.com/v1/style-profiles/{profile_id}"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"path-parameters","__idx":1},"children":["Path parameters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["profile_id"]}]}," string ",{"$$mdtype":"Tag","name":"em","attributes":{"style":{"color":"#ef4444 !important","fontWeight":"600 !important","fontStyle":"normal !important"}},"children":["required"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Style profile id (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sty_"]}," + 32 hex characters)."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"query-parameters","__idx":2},"children":["Query parameters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["organization_id"]}]}," string ",{"$$mdtype":"Tag","name":"em","attributes":{"style":{"color":"#9ca3af !important","fontWeight":"500 !important","fontStyle":"normal !important"}},"children":["optional"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Organization used for visibility. Resolved from the caller when omitted."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"returns","__idx":3},"children":["Returns"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\"success\": true, \"id\": \"sty_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"}\n","lang":"json"},"children":[]}]},{"$$mdtype":"Tag","name":"ApiExamples","attributes":{},"children":[{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"Request","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeGroup","attributes":{"mode":"dropdown"},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","data-title":"cURL","header":{"title":"cURL","controls":{"copy":{}}},"source":"curl -X DELETE \"https://api.aitronos.com/v1/style-profiles/sty_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\" \\\n  -H \"X-API-Key: $FREDDY_API_KEY\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","data-title":"Python SDK","header":{"title":"Python SDK","controls":{"copy":{}}},"source":"from aitronos import Aitronos\n\nclient = Aitronos(api_key=\"your-api-key\")\nclient.style_profiles.delete(\"sty_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\")\n","lang":"python"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","data-title":"Python","header":{"title":"Python","controls":{"copy":{}}},"source":"import os\nimport requests\n\nresponse = requests.delete(\n    \"https://api.aitronos.com/v1/style-profiles/sty_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\",\n    headers={\"X-API-Key\": os.environ[\"FREDDY_API_KEY\"]},\n)\nprint(response.json())\n","lang":"python"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","data-title":"JavaScript","header":{"title":"JavaScript","controls":{"copy":{}}},"source":"const response = await fetch(\n  \"https://api.aitronos.com/v1/style-profiles/sty_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\",\n  {\n    method: \"DELETE\",\n    headers: { \"X-API-Key\": process.env.FREDDY_API_KEY },\n  },\n);\nconsole.log(await response.json());\n","lang":"javascript"},"children":[]}]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Response","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","data-title":"200 OK","header":{"title":"200 OK","controls":{"copy":{}}},"source":"{\n  \"success\": true,\n  \"id\": \"sty_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n}\n","lang":"json"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Error","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","data-title":"409 Conflict","header":{"title":"409 Conflict","controls":{"copy":{}}},"source":"{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"CONFLICT\",\n    \"message\": \"Detach this personality from assistants before deleting it.\",\n    \"system_message\": \"Style profile is still attached to an assistant\",\n    \"type\": \"client_error\",\n    \"status\": 409,\n    \"details\": {\n      \"id\": \"sty_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\",\n      \"attached_assistants\": 2\n    },\n    \"trace_id\": \"req_abc123xyz\",\n    \"timestamp\": \"2026-09-14T12:00:00Z\"\n  }\n}\n","lang":"json"},"children":[]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"related-resources","__idx":4},"children":["Related Resources"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api-reference/style-profiles/list"},"children":["List style profiles"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api-reference/style-profiles/update"},"children":["Update a style profile"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api-reference/assistants/update"},"children":["Update assistant"]}]}]}]},"headings":[{"value":"Delete a style profile","id":"delete-a-style-profile","depth":1},{"value":"Path parameters","id":"path-parameters","depth":2},{"value":"Query parameters","id":"query-parameters","depth":2},{"value":"Returns","id":"returns","depth":2},{"value":"Related Resources","id":"related-resources","depth":2}],"frontmatter":{"title":"Delete a style profile","description":"DELETE /v1/style-profiles/{profile_id} — soft-delete a custom character or note","keywords":["delete style profile","DELETE /v1/style-profiles"],"seo":{"title":"Delete a style profile"}},"lastModified":"2026-10-26T18:32:31.692Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/api-reference/style-profiles/delete","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}