The Windows 10 Sandbox is basically a slimmed-down and customised virtual Windows 10 machine. This is non-persistent, which means that all changes are gone after use. This means that all malware is deleted when the sandbox is closed and the next sandbox is clean again for playing.