(self, cluster_template_ident)
Delete a ClusterTemplate.

        :param cluster_template_ident: UUID or logical name of a
         ClusterTemplate.
Delete a ClusterTemplate.
Delete a ClusterTemplate .
def delete(self, cluster_template_ident):
        """Delete a ClusterTemplate.

        :param cluster_template_ident: UUID or logical name of a
         ClusterTemplate.
        """
        context = pecan.request.context
        if context.is_admin:
            policy.enforce(context, 'clustertemplate:delete_all_projects',
                           action='clustertemplate:delete_all_projects')
            context.all_tenants = True

        cluster_template = api_utils.get_resource('ClusterTemplate',
                                                  cluster_template_ident)
        policy.enforce(context, 'clustertemplate:delete',
                       cluster_template.as_dict(),
                       action='clustertemplate:delete')
        cluster_template.destroy()
def delete ( self , cluster_template_ident ) : context = pecan . request . context if context . is_admin : policy . enforce ( context , 'clustertemplate:delete_all_projects' , action = 'clustertemplate:delete_all_projects' ) context . all_tenants = True cluster_template = api_utils . get_resource ( 'ClusterTemplate' , cluster_template_ident ) policy . enforce ( context , 'clustertemplate:delete' , cluster_template . as_dict ( ) , action = 'clustertemplate:delete' ) cluster_template . destroy ( )