### 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 Enterprise 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

- For administrators
  1. On the JReport Administration > Reports page, locate the row the resource is in, then click the Version button in the Control column.
  2. In the Version table, check the checkbox(es) ahead of the versions that you want to remove and then click the Delete link.
- For end users
  1. On the JReport Console > Reports page, select the resource row, right-click in the row and select Version from the shortcut menu.
  2. In the Version table, select the version you want to remove, then click Edit > Delete on the task bar (or right-click in the version row and click Delete on the shortcut menu).

Then, 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 set result versions.

  When creating a report set 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.