see the script in the Blank sprite play your replay code, pause up to where you'd like to delete, show replay i (local variable in Player), put that value into the custom block. Then see New replay code.