def perform_destroy(self, instance):
        obj = self.get_permissioned_object()
        app_label = obj._meta.app_label
        model_name = obj._meta.model_name
        for perm in instance['permissions']:
            remove_perm('%s.%s_%s' % (app_label, perm, model_name),
                        instance[self.get_user_or_group()],
                        obj)


# pylint: disable=abstract-method
dataset/ETHPy150Open stackdio/stackdio/stackdio/core/viewsets.py/StackdioObjectPermissionsViewSet.perform_destroy/original