Deleting a function
To access a function, use its name or unique ID. To find them, get a list of functions in a folder.
Deleting a function
To delete a function:
- Open the Cloud Functions section in the folder where you want to delete the function.
- Click in the row of the function you want to delete.
- In the menu that opens, click Delete.
- In the window that opens, click Delete.
If you don't have the Yandex.Cloud command line interface yet, install and initialize it.
Delete the function:
$ yc serverless function delete <function name>
Result:
done (1s)
id: b09kk2ujb8js23f73b06
folder_id: aoek49ghmknnpj1ll45e
created_at: "2019-06-13T13:21:40.022Z"
name: my-functions
log_group_id: eolq9ac97486t34iut5q
http_invoke_url: https://functions.yandexcloud.net/b09kk2ujb8js23f73b06
status: DELETING
With Terraform, you can quickly create a cloud infrastructure in Yandex.Cloud. The infrastructure components are identified through configuration files that specify the required cloud resources and their parameters.
Read more about Terraform in the documentation.
If you created a function using Terraform, you can delete it:
-
In the command line, go to the directory with the Terraform configuration file.
-
Delete resources using the command:
$ terraform destroy
Alert
Terraform deletes all the resources that you created in the current configuration, such as clusters, networks, subnets, and VMs.
-
Confirm the deletion of resources.