Preheat an air fryer to 375 degrees F.
Combine flour, cayenne pepper, and salt in a bowl.
Add onion slices and toss until well coated.
Place onions in basket and spray with avocado oil.
Air fry until golden brown, 18 to 23 minutes, shaking basket every 4 to 5 minutes.
