How to Destroy Functions

Validated on 23 May 2022 • Last edited on 9 Apr 2025

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.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.