
## Updating schemas


<div class="admonition admonition-important"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

- When you update a schema by removing a data field, that field is automatically removed from existing records.
- When you update a schema by adding a new data field, existing records are **not** automatically updated to include any value.

</div></div></div>


1. Go to <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/data-management-icon.png" alt="Data Modeling icon" class="icon"> **Data Modeling Hub > Schema Builder**.
2. In the list of schemas, locate the schema to delete and click <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/threedoticon.png" alt="Three dot icon" class="icon">.
3. In the menu that opens, click **Edit**.  
**Result:** the schema creation screen opens.
1. Edit the schema in the same way as in [Creating schemas](/docs/assets/schema-builder/creating-schemas).

## Previewing schemas

You can check what the schema looks like when a user adds records manually.

1. Go to <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/data-management-icon.png" alt="Data Modeling icon" class="icon"> **Data Modeling Hub > Schema Builder**.
2. In the list of schemas, locate the schema to delete and click <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/threedoticon.png" alt="Three dot icon" class="icon">.
3. In the menu that opens, click **Preview**.  
**Result:** The preview opens.

## Duplicating schemas

When you duplicate a schema, an identical schema is created under the name `<schema name> - copy`. The new schema does not contain any records.

1. Go to <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/data-management-icon.png" alt="Data Modeling icon" class="icon"> **Data Modeling Hub > Schema Builder**.
2. In the list of schemas, locate the schema to delete and click <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/threedoticon.png" alt="Three dot icon" class="icon">.
3. In the menu that opens, click **Duplicate**.  
**Result:** The schema is duplicated.

## Deleting schemas

<div class="admonition admonition-warning"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z" /></svg></div><div class="admonition-body"><div class="admonition-content">

When you delete a schema, all data records stored in that schema are also deleted.

</div></div></div>

1. Go to <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/data-management-icon.png" alt="Data Modeling icon" class="icon"> **Data Modeling Hub > Schema Builder**.
2. In the list of schemas, locate the schema to delete and click <img src="/api/docs/image/54176ad07f146575310749eba44b7c2f42c1b327/icons/threedoticon.png" alt="Three dot icon" class="icon">.
3. In the menu that opens, click **Delete**.  
**Result:** The schema and all its records are deleted.