Skip to main content

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​

FlagRequiredDescriptionDefault
[functionName]NoFunction name. Without it, every function in the configuration file is deleted—
-e, --env-id <envId>NoEnvironment IDCurrent default environment
--forceNoSkip the confirmation prompt—
--dry-runNoPreview 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 download first
  • Deleting a function also removes its triggers and logs