Method: Gitlab::Client::ProjectClusters#delete_project_cluster

Defined in:
lib/gitlab/client/project_clusters.rb

#delete_project_cluster(project, cluster_id) ⇒ nil

Deletes an existing project cluster.

Examples:

Gitlab.delete_project_cluster(5, 42)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • cluster_id (Integer)

    The ID of the cluster.

Returns:

  • (nil)

    This API call returns an empty response body.



79
80
81
# File 'lib/gitlab/client/project_clusters.rb', line 79

def delete_project_cluster(project, cluster_id)
  delete("/projects/#{url_encode project}/clusters/#{cluster_id}")
end