# Retaining & Removing Election Files

### Retaining Election Files

After certification of an election and before configuring a new election, all election files and data should be saved and election package removed from the previous election.

VotingWorks recommends retaining the following files after each election:

* [ ] VxAdmin results file
* [ ] VxAdmin tally reports
* [ ] VxAdmin log file
* [ ] VxScan CVRs
* [ ] VxScan log file
* [ ] VxCentralScan backup (if applicable - see [Retaining and Removing files - VxCS](https://docs.voting.works/vxsuite-user-manual-v3.1/vxcentralscan/retaining-and-removing-files-vxcs))
* [ ] VxCentralScan log file (if applicable - see [Retaining and Removing files - VxCS](https://docs.voting.works/vxsuite-user-manual-v3.1/vxcentralscan/retaining-and-removing-files-vxcs))

{% hint style="warning" %}
**Note**: Ballots should have been secured post-tabulation. Follow state guidelines to ensure proper retention.
{% endhint %}

### VxAdmin&#x20;

To save the recommended VxAdmin files, follow these steps when logged in as an Election Manager:

1. Select Reports from the side menu, select *`Full Election Tally Report`*, select *`Export Report PDF.`*
2. Then select *`Export Report CSV`*.

<div><figure><img src="https://3689992367-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD1Q1RPHT4tkPuKCBW89l%2Fuploads%2FNdKcFNhtuKKtE8nRv6pK%2Fimage.png?alt=media&#x26;token=25f745d0-41f8-4630-a2a7-d186452da873" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="https://3689992367-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD1Q1RPHT4tkPuKCBW89l%2Fuploads%2FlVv9PDc3orW1RtJUFEIZ%2Fimage.png?alt=media&#x26;token=f9393d7e-f28a-45b7-a4b7-aa404ccfbf3e" alt="" width="375"><figcaption></figcaption></figure></div>

Next lock the machine and log in as a System Administrator. Select Settings from the side menu and *`Save Log File`*. Machine log files are saved in the /logs folder on the USB drive.

<figure><img src="https://3689992367-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD1Q1RPHT4tkPuKCBW89l%2Fuploads%2FzIjagKuKpFnx7YcfcnRN%2Fimage.png?alt=media&#x26;token=c3c6b5f5-1a4c-4d99-970e-079668fd761f" alt="" width="266"><figcaption></figcaption></figure>

### VxScan CVR Files

VxScan CVRs include the VxScan's CVRs and ballot images. The log file contains the logs. To save the VxScan files, [setup the VxScan](https://docs.voting.works/vxsuite-user-manual-v3.1/election-day-guides/vxscan-setup) without the ballot box and follow the following steps:

1. Insert Election Manager Card
2. Select CVRs and Logs from the side menu
3. Insert a USB drive
4. Select *`Save Log File`*
5. Select *`Save CVRs`*

<figure><img src="https://3689992367-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD1Q1RPHT4tkPuKCBW89l%2Fuploads%2Fu3635jRjJaDAu59H2Lsp%2Fimage.png?alt=media&#x26;token=9982f570-65bc-4132-863e-dde04fdf0132" alt="" width="265"><figcaption></figcaption></figure>

{% hint style="info" %}
**Log files** contain records of user interactions with the machine (e.g., election officials and poll workers unlocking the machine, voters casting ballots, etc.) as well as internal system information (e.g., the status of paper running through the scanner, errors, etc.). [A detailed description for each event in the log can be found in Github](https://github.com/votingworks/vxsuite/blob/main/libs/logging/VotingWorksLoggingDocumentation.md).
{% endhint %}

### Removing Election Files

In VxAdmin, log in with a System Administrator Card, select Election from the side menu and select *`Unconfigure Machine`*.

<figure><img src="https://3689992367-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD1Q1RPHT4tkPuKCBW89l%2Fuploads%2FPXBoVqgWxNSFmsdI7SEM%2Fimage.png?alt=media&#x26;token=1f750762-103e-4d7e-aff0-d38e99336139" alt="" width="267"><figcaption></figcaption></figure>

In VxScan, insert an Election Manager Card and select *`Unconfigure Machine`*.

<figure><img src="https://3689992367-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD1Q1RPHT4tkPuKCBW89l%2Fuploads%2FAlOKjRBEYZ1RycTzMRPv%2Fimage.png?alt=media&#x26;token=ea7f0d72-cd9e-432c-aa43-622dae731cc1" alt="" width="268"><figcaption></figcaption></figure>
