tcb fn delete
Deletes functions that are no longer used.
Usage
# Delete a specific function
tcb fn delete <functionName>
# Delete every function in the configuration file
tcb fn delete
Flags
| Flag | Required | Description | Default |
|---|---|---|---|
[functionName] | No | Function name. Without it, every function in the configuration file is deleted | — |
-e, --env-id <envId> | No | Environment ID | Current default environment |
--force | No | Skip the confirmation prompt | — |
--dry-run | No | Preview what would be deleted without deleting | — |
Example
# Delete the app function
tcb fn delete app
# Delete every function in the configuration file
tcb fn delete
# Preview the functions to delete
tcb fn delete app --dry-run
# Delete without confirmation
tcb fn delete app --force
Notes
- Deletion is irreversible. Back up the code with
tcb fn code downloadfirst - Deleting a function also removes its triggers and logs