Before any interview
Send: As soon as you know you won't take the job, even if you haven't heard back yet.
Subject: Withdrawing my application: [Job title]
Hi [Name], I applied for the [Job title] role on [date], and I'd like to withdraw my application. My plans have changed, and I don't want to take up the team's time. Thank you for considering me. I'd be glad to hear about future roles at [Company]. Best, [Your name]