---
description: Removes persistent status from accounts
---

## `revokePersistent`

### Signature

```solidity
function revokePersistent(address account) external;
function revokePersistent(address[] calldata accounts) external;
```

### Description

Removes the persistent status from accounts, meaning their state will no longer be shared across fork switches. This is the counterpart of [`makePersistent`](/reference/cheatcodes/make-persistent).

### Parameters

| Parameter  | Type        | Description                                   |
|------------|-------------|-----------------------------------------------|
| `account`  | `address`   | The account to remove persistent status from  |
| `accounts` | `address[]` | Array of accounts to remove persistent status |

### Examples

```solidity [test/RevokePersistent.t.sol]
function testRevokePersistent() public {
    vm.selectFork(mainnetFork);
    
    SimpleStorage simple = new SimpleStorage();
    
    // Make persistent
    vm.makePersistent(address(simple));
    assertTrue(vm.isPersistent(address(simple)));
    
    // Revoke persistent status
    vm.revokePersistent(address(simple));
    assertFalse(vm.isPersistent(address(simple)));
}
```

### Related Cheatcodes

- [`makePersistent`](/reference/cheatcodes/make-persistent) - Mark accounts as persistent
- [`isPersistent`](/reference/cheatcodes/is-persistent) - Check if an account is persistent
