There are several scenarios in which sending a goodbye email is appropriate:
When a subscription is ending When a customer has not engaged with your emails for a long period When a service or product is being discontinued When a company is closing down