Wash the Squash: Thoroughly wash the outside of the squash to remove any dirt or debris.
Cut the Squash: Place the squash on a stable cutting board. Using a sharp knife, carefully cut the squash in half lengthwise, from stem to bottom.
Remove the Seeds: Use a spoon to scoop out the seeds and stringy pulp from the center of each half.
Season the Squash: Drizzle the cut sides of the squash with olive oil. Sprinkle generously with salt, pepper, and any other desired spices.
Preheat the Air Fryer (Optional): Set it to 400°F (200°C) for 5 minutes.
Place Squash in the Air Fryer: Place the squash halves cut-side up in the air fryer basket.
Air Fry: Set the air fryer to 400°F (200°C) and cook for 30-40 minutes, or until the squash is tender.
Check for Doneness: After 30 minutes, check the squash for doneness.
Shred the Squash: Once the squash is cooked, carefully remove it from the air fryer and use a fork to shred the flesh into spaghetti-like strands.