code: func (f *Function) cleanup() error {
  	versionsToCleanup, err := f.versionsToCleanup()
  	if err != nil {
  		return err
  	}
  
  	return f.removeVersions(versionsToCleanup)
  }
docs: // cleanup removes any deployed functions beyond the configured `RetainedVersions` value