def _delete(self, context, resource, force=True): # Delete all share group snapshots for snap in resource['snapshots']: db.share_group_snapshot_destroy(context, snap['id']) # Delete all shares in share group for share in db.get_all_shares_by_share_group(context, resource['id']): db.share_delete(context, share['id']) db.share_group_destroy(context.elevated(), resource['id'])
def _delete(self, context, resource, force=True): db.share_group_snapshot_destroy(context.elevated(), resource['id'])
def _delete(self, context, resource, force=True): db.share_group_snapshot_destroy(context.elevated(), resource['id'])