You should use the metrics filter with the correct syntax to delete AWS Lambda functions that haven’t been invoked in the last 90 days using Cloud Custodian. Your Version 3 is closest, but the statistic field should be Statistics (capital S) and the value should be a list.