# Remove vector store from space Remove an additional vector store attachment from a space. Detach an additional vector store from a space. The vector store itself is not deleted, only the association is removed. Requires edit access to the space. #### Path Parameters **`space_id`** string required The unique identifier of the space. **`vector_store_id`** string required The unique identifier of the vector store to detach. ## Returns No content (204). Request ```bash cURL curl -X DELETE "https://api.aitronos.com/v1/spaces/space_abc123/vector-stores/vs_def456" \ -H "X-API-Key: $FREDDY_API_KEY" ``` ```python Python import os import requests api_key = os.environ["FREDDY_API_KEY"] response = requests.delete( "https://api.aitronos.com/v1/spaces/space_abc123/vector-stores/vs_def456", headers={"X-API-Key": api_key}, ) # 204 No Content on success ``` ```javascript JavaScript const response = await fetch( "https://api.aitronos.com/v1/spaces/space_abc123/vector-stores/vs_def456", { method: "DELETE", headers: { "X-API-Key": apiKey }, } ); // 204 No Content on success ``` Response ```json 204 No Content // No response body ``` ```json 404 Space Not Found { "success": false, "error": { "code": "RESOURCE_NOT_FOUND", "message": "The requested resource could not be found.", "system_message": "Space not found", "type": "client_error", "status": 404, "details": { "space_id": "space_invalid" }, "trace_id": "abc-123-def", "timestamp": "2026-02-26T10:30:00Z" } } ``` ```json 404 Not Attached { "success": false, "error": { "code": "RESOURCE_NOT_FOUND", "message": "The requested resource could not be found.", "system_message": "Vector store not attached to space", "type": "client_error", "status": 404, "details": { "space_id": "space_abc123", "vector_store_id": "vs_def456" }, "trace_id": "abc-123-def", "timestamp": "2026-02-26T10:30:00Z" } } ``` ```json 403 Forbidden { "success": false, "error": { "code": "INSUFFICIENT_PERMISSIONS", "message": "You don't have permission to perform this action.", "system_message": "Edit access required", "type": "client_error", "status": 403, "details": { "space_id": "space_abc123" }, "trace_id": "abc-123-def", "timestamp": "2026-02-26T10:30:00Z" } } ``` ## Related Resources - [Add Vector Store to Space](/docs/api-reference/spaces/add-vector-store) - [List Space Vector Stores](/docs/api-reference/spaces/list-vector-stores) - [Retrieve Space](/docs/api-reference/spaces/retrieve) - [Create Space](/docs/api-reference/spaces/create)