def resource_view_clear(context, data_dict):
 model = context['model']
 _check_access('resource_view_clear', context, data_dict)
 view_types = data_dict.get('view_types')
 model.ResourceView.delete_all(view_types)
 model.repo.commit()

def resource_view_clear ( context , data_dict ) : model = context [ 'model' ] _check_access ( 'resource_view_clear' , context , data_dict ) view_types = data_dict . get ( 'view_types' ) model . ResourceView . delete_all ( view_types ) model . repo . commit ( )
delete all resource views .