How does the schedule command work?

simply help me how can I revoke an advancement after 5 seconds

Continue to help post