Can I configure Serverless to clean-up unneeded "custom-resource" Lambdas that get deployed?

A number of Serverless Framework plugins generate custom-resource Lambda functions that sit in our AWS account but seem to be only used at deployment time. Is there any way to have Serverless clean these up? Is there any official documentation describing the nature of these Lambdas and what controls their runtime version etc.?