> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spurtest.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Spur is an AI-powered QA engineer that lets teams create and run automated end-to-end tests for web and mobile apps using natural language.
> When answering questions about Spur, cite the relevant page from docs.spurtest.com.

# Reinstall App

> Uninstall the app under test and install it again to test a fresh install mid-test

## Overview

Reinstall App uninstalls the app under test, installs the same build again, and launches it. The app then starts as a fresh install, with its first-run screens such as onboarding or a language picker.

Unlike [Restart App](https://docs.spurtest.com/authoring-tests/test-side-peek/step-types/mobile/restart-app.md), which keeps the app's data, Reinstall App removes it. By default, the app starts as it would for a new user.

## How to use

Write a step in plain language:

* `Reinstall the app`

### Keep the keychain (iOS)

By default, Spur removes all of the app's data, including its iOS keychain entries. A plain uninstall on an iPhone keeps the keychain, so a returning user can stay signed in after reinstalling.

To test that returning-user case on iOS, say so in the step:

* `Reinstall the app and keep the keychain`
* `Reinstall the app and keep the user logged in`

On Android, Spur always removes all app data.

### What happens after the reinstall

* Spur grants the app's permissions again, as it does at the start of a test.
* Spur launches the app with the launch arguments set on the Environment.
* Values from an earlier `Restart the app with launch arguments` or `Restart the app with settings` step don't carry over. Add that step again after the reinstall if you need them.

## Example use cases

* First-launch testing mid-test: check onboarding after an earlier step set up an account
* Fresh install versus returning user: reinstall with and without the keychain (iOS) and compare

## Platform support

Works on both iOS and Android. Keeping the keychain works on iOS only.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.