---
title: Edit and remove views
project: OpenReports
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openreports/1-0/guides/edit-views/
updated: 2026-11-19T07:46:43.430Z
---

# Edit and remove views

> Change the SQL or the fields of a view, or remove a view and its reports.

You change and remove views in the **Views** screen. Each view has a gear icon on its card.

## Edit a view

1. In **Views**, select the card of the view, or select its gear icon and then **Edit**.
2. Change the JSON in the **View specification** editor.
3. Select **SUBMIT**.

Reports that use the view use the new SQL the next time they run.

## Keep your reports when you change a field

Reports remember each field by an ID. Without `output`, the ID comes from `column`. If you change the `column` of a field, its ID changes and reports lose that field from their fields, groups, filters and sorting.

To rename a column safely, give the field an `output` first, for example `"output": "total"`. The ID is then `total`, whatever the column is. See [View definition](../../reference/view-definition/).

Changing `name`, `type`, `format` or `group` keeps the ID.

## Remove a view

1. Select the gear icon on the card of the view, then **Remove**.
2. Confirm with **Remove**.

Removing a view also removes every report that uses it. This cannot be undone, so [back up OpenReports](../backups/) first if you are not sure.
