(self, baymodel_ident)
Delete a Baymodel.

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

        :param baymodel_ident: UUID or logical name of a Baymodel.
        """
        context = pecan.request.context
        baymodel = api_utils.get_resource('ClusterTemplate', baymodel_ident)
        policy.enforce(context, 'baymodel:delete', baymodel.as_dict(),
                       action='baymodel:delete')
        baymodel.destroy()
def delete ( self , baymodel_ident ) : context = pecan . request . context baymodel = api_utils . get_resource ( 'ClusterTemplate' , baymodel_ident ) policy . enforce ( context , 'baymodel:delete' , baymodel . as_dict ( ) , action = 'baymodel:delete' ) baymodel . destroy ( )