Instead of reverting state, consider forking an existing Virtual Environment instead, and do your testing on a disposable working copy.

Reverting to a snapshot
Use
evm_snapshot to create a snapshot on the current block.
The method returns the snapshot ID you can use to revert.TENDERLY_VIRTUAL_TESTNET_RPC= #...
SNAPSHOT_ID=$(curl $TENDERLY_VIRTUAL_TESTNET_RPC \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "evm_snapshot",
"id": "1234"
}' \
| jq -r '.result')
Use
evm_revert to back revert to previously created snapshot (SNAPSHOT_ID).
From this point onwards, all prior changes up to the snapshot will be discarded.