# ivyforms/0.5/backend/src/Services/InstallActions/DeleteDatabaseHook.php

The Innovative Form Builder – IvyForms, version 0.5. 34 lines.

- Page: https://pluginprobe.com/plugins/ivyforms/0.5/code/backend/src/Services/InstallActions/DeleteDatabaseHook.php
- Raw: https://pluginprobe.com/plugins/ivyforms/0.5/raw/backend/src/Services/InstallActions/DeleteDatabaseHook.php
- Modified: 2025-10-23T15:35:44+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/ivyforms/0.5/code/backend/src/Services/InstallActions/DeleteDatabaseHook.php#L10-L20`.

```php
<?php

/**
 * Database hook for activation
 */

namespace IvyForms\Services\InstallActions;

// phpcs:disable PSR1.Files.SideEffects
if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}

use IvyForms\Common\Exceptions\InvalidArgumentException;
use IvyForms\Services\InstallActions\DB\Form\FormsTable;

/**
 * Class DeleteDatabaseHook
 *
 * @package IvyForms\Services\InstallActions
 */
class DeleteDatabaseHook
{
    /**
     * Delete the plugin tables
     *
     * @throws InvalidArgumentException
     */
    public static function delete(): void
    {
        FormsTable::delete();
    }
}

```
