flash run.
Example
List all tracked endpoints:Usage modes
List endpoints
Display all tracked endpoints with their current status:- Name: Endpoint name
- Endpoint ID: Runpod endpoint identifier
- Status: Current health status (Active/Inactive/Unknown)
- Type: Resource type (Live Serverless, Cpu Live Serverless, etc.)
| Status | Meaning |
|---|---|
| Active | Endpoint is running and responding |
| Inactive | Tracking exists but endpoint deleted externally |
| Unknown | Error during health check |
Undeploy by name
Delete a specific endpoint:- Searches for endpoints matching the name.
- Shows endpoint details.
- Prompts for confirmation.
- Deletes the endpoint from Runpod.
- Removes from local tracking.
Undeploy all
Delete all tracked endpoints (requires double confirmation):- Shows total count of endpoints.
- First confirmation: Yes/No prompt.
- Second confirmation: Type “DELETE ALL” exactly.
- Deletes all endpoints from Runpod.
- Removes all from tracking.
Interactive selection
Select endpoints to undeploy using checkboxes:Clean up stale tracking
Remove inactive endpoints from tracking without API deletion:.runpod/resources.pkl) becomes stale, and this command cleans it up.
Flags
--all
Undeploy all tracked endpoints. Requires double confirmation for safety.
--interactive, -i
Interactive checkbox selection mode. Select multiple endpoints to undeploy.
--cleanup-stale
Remove inactive endpoints from local tracking without attempting API deletion. Use when endpoints were deleted externally.
Arguments
Name of the endpoint to undeploy. Use
list to show all endpoints.undeploy vs env delete
| Command | Scope | When to use |
|---|---|---|
flash undeploy | Individual endpoints from local tracking | Development cleanup, granular control |
flash env delete | Entire environment + all resources | Production cleanup, full teardown |
flash env delete to remove entire environments and all associated resources.
How tracking works
Flash tracks deployed endpoints in.runpod/resources.pkl. Endpoints are added when you:
- Run
flash run --auto-provision - Run
flash runand call@Endpointfunctions - Run
flash deploy
.gitignore and should never be committed. It contains local deployment state.
Common workflows
Basic cleanup
Bulk operations
Managing external deletions
If you delete endpoints via the Runpod console:Troubleshooting
Endpoint shows as “Inactive”
The endpoint was deleted via Runpod console or API. Clean up:Can’t find endpoint by name
Check the exact name:Undeploy fails with API error
- Check
RUNPOD_API_KEYin.env. - Verify network connectivity.
- Check if the endpoint still exists on Runpod.
Related commands
flash run- Development server (creates endpoints)flash deploy- Deploy to Runpodflash env delete- Delete entire environment