public static function delete_data_for_all_users_in_context(\context $context) {
        // Delete all Calendar Events in the specified context in batches.
        if ($eventids = array_keys(self::get_calendar_event_ids_by_context($context))) {
            self::delete_batch_records('event', 'id', $eventids);
        }

        // Delete all Calendar Subscriptions in the specified context in batches.
        if ($subscriptionids = array_keys(self::get_calendar_subscription_ids_by_context($context))) {
            self::delete_batch_records('event_subscriptions', 'id', $subscriptionids);
        }
    }
public static function delete_data_for_all_users_in_context(\context $context) {
        // Delete all Calendar Events in the specified context in batches.
        if ($eventids = array_keys(self::get_calendar_event_ids_by_context($context))) {
            self::delete_batch_records('event', 'id', $eventids);
        }

        // Delete all Calendar Subscriptions in the specified context in batches.
        if ($subscriptionids = array_keys(self::get_calendar_subscription_ids_by_context($context))) {
            self::delete_batch_records('event_subscriptions', 'id', $subscriptionids);
        }
    }
public static function delete_data_for_all_users_in_context ( \ context $ context ) { // Delete all Calendar Events in the specified context in batches. if ( $ eventids = array_keys ( self :: get_calendar_event_ids_by_context ( $ context ) ) ) { self :: delete_batch_records ( 'event' , 'id' , $ eventids ) ; } // Delete all Calendar Subscriptions in the specified context in batches. if ( $ subscriptionids = array_keys ( self :: get_calendar_subscription_ids_by_context ( $ context ) ) ) { self :: delete_batch_records ( 'event_subscriptions' , 'id' , $ subscriptionids ) ; } }
Delete all Calendar Event and Calendar Subscription data for all users in the specified context.

@param   context $context Transform the specific context to delete data for.
Delete all Calendar Event and Calendar Subscription data for all users in the specified context .