### Deleting versions

After creating versions, periodically you may want to delete some expired or unused versions. You can choose to remove these versions manually or configure JReport Server to delete them automatically. When removing the versions using the user interface, the archive versions stored on disk are also physically deleted.

#### Deleting manually

To delete some versions of a resource manually, first open the version table of the resource (for how to access the table, see Browsing versions), then:

- For administrators, in the version table, check the checkbox ahead of the versions that you want to remove and then click the Delete link.
- For end users, in the version table, find the version you want to remove, then:
  - Select the version row and click Edit > Delete on the task bar.
  - Select the version row, right-click in the row and click Delete on the shortcut menu.
  - Put the mouse pointer over the version row and click the Delete button .

After receiving "The version has been deleted" message, view the version information again. You will find that the version you selected has now been removed from the version table.

#### Deleting automatically

There are two approaches to automatically deleting versions:

- Apply Archive Policy
  The Apply Archive Policy controls the number of versions that will be recorded in the version table of a resource.

  When creating a resource version, you can specify the maximum number that will be saved. If the number of versions exceeds the specified number, the oldest version will automatically be removed from the version list.

  For example, if you specify Maximum Number of Versions as 5, when the sixth version is created, the first version will automatically be removed.

- Result Auto-delete
  Result Auto-delete controls the duration of versions. It is only applicable to report result versions.

  When creating a report result version, you can specify a certain period of time to keep the version. The version will automatically be removed from the version list after the number of days or the specified date.

  For example, if you specify "Result Expires in 30 days", it will be automatically removed 30 days after its creation.