# booktics/1.0.29/uninstall.php

Booktics – Appointment Booking Calendar for Service Businesses, version 1.0.29. 20 lines.

- Page: https://pluginprobe.com/plugins/booktics/1.0.29/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/booktics/1.0.29/raw/uninstall.php
- Modified: 2026-10-11T10:01:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/booktics/1.0.29/code/uninstall.php#L10-L20`.

```php
<?php
/**
 * Fires when the user deletes the plugin from the Plugins screen.
 * Clears onboarding flags so a reinstall re-triggers the onboarding flow.
 *
 * @package Booktics
 */

defined( 'WP_UNINSTALL_PLUGIN' ) || exit;

$booktics_settings_key = 'booktics_options';
$booktics_settings     = get_option( $booktics_settings_key, array() );

if ( is_array( $booktics_settings ) ) {
    unset( $booktics_settings['onboard_setup'] );
    update_option( $booktics_settings_key, $booktics_settings );
}

delete_option( 'booktics_is_installed' );

```
