How to Destroy Functions

Functions are blocks of code that run on demand without the need to manage any infrastructure. Develop on your local machine, test your code from the command line (using doctl), then deploy to a production namespace or App Platform — no servers required.


You can destroy individual functions at any time. You can also destroy all functions in a namespace at once by resetting the namespace.

Destroy Individual Functions

To permanently destroy functions, from the Overview tab of the namespace, click the function’s More (…) menu.

The More (...) menu for a function with Edit and Test, Open in Browser, and Destroy Function options visible.

Click Destroy Function to open the Destroy Function window.

The Destroy Function window with the confirmation prompt.

Enter the name of the function in the confirmation prompt, then click Destroy.

Reset the Namespace

To permanently destroy all functions in a namespace, click the Actions button in the top right, then click Reset Namespace.

The Reset Namespace window with the confirmation prompt.

Enter the name of the namespace in the confirmation prompt, then click Reset.