Discard a Cloud Function draft
Discard the pending code draft of a Cloud Function. The published version keeps running.
DELETE
Discard a Cloud Function draft
Delete the pending draft of a Cloud Function. The published code keeps running on every matching event, and the function no longer shows unpublished changes.
Calling it when there is no draft also succeeds. Discarding cannot be undone, but every published version stays available in Versions.
Authorizations
Last modified on October 6, 2026
Discard a Cloud Function draft