# clearState

This command removes cached data related to an app.

## Examples

Run the command without arguments to clear the state of the active app uploaded to Moropo:

```yaml
- clearState
```

Specify an app ID to clear the state of a specific app (other than the uploaded app):

```yaml
- clearState: com.facebook.app
```

On iOS, it will remove all application data.

On Android, it will remove all application data and accounts, shared preferences, databases and other OS-level data related to the app)&#x20;

## Related Commands

[clearkeychain](https://docs.moropo.com/creating-tests/commands/clearkeychain "mention")
