> For the complete documentation index, see [llms.txt](https://learn.getvectorai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.getvectorai.com/vector-search/managing-vector-ai/how-to-remove-a-field-in-a-collection.md).

# How to remove a field in a collection

We can change the schema of a collection using the `/project/copy_collection` endpoint and fill in the value for the `remove_fields` argument.

{% tabs %}
{% tab title="Python" %}

```python
import requests 
response = requests.post("https://vectorai-development-api.azurewebsites.net/project/copy_collection",
    json={
        "username": "string",
        "api_key": "string",
        "collection_name": "string",
        "original_collection_name": "string",
        "remove_fields": ["field_to_remove"]
    })
response.json()
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
let request = await fetch("https://vectorai-development-api.azurewebsites.net/project/copy_collection", {
      "method": "POST",
      "headers": {
            "Content-Type": "application/json"
      },
      "body": JSON.stringify({
        "username": "string",
        "api_key": "string",
        "collection_name": "string",
        "original_collection_name": "string",
        "remove_fields": ["field_to_remove"]
      })
})

let json = await request.json()
```

{% endtab %}
{% endtabs %}
