Plugins can get notified whenever a subscription plan is being archived.
This is useful as sometimes this can be triggered by an action on the gateway.

usecraft\commerce\events\PlanEvent;usecraft\commerce\services\Plans;useyii\base\Event;
Event::on(Plans::class, Plans::EVENT_ARCHIVE_PLAN,function(PlanEvent $e){// Do something as the plan is being retired.});