kube::runtime::wait::delete

Function delete_and_finalize

Source
pub async fn delete_and_finalize<K>(
    api: Api<K>,
    name: &str,
    delete_params: &DeleteParams,
) -> Result<(), Error>
where K: Clone + Debug + Send + DeserializeOwned + Resource + 'static,
Available on crate feature runtime only.
Expand description

Delete an object, and wait for it to be removed from the Kubernetes API (including waiting for all finalizers to unregister themselves).

ยงErrors

Returns an Error if the object was unable to be deleted, or if the wait was interrupted.