# css-javascript-toolbox/12.0.5/models/uninstall.php

CSS &amp; JavaScript Toolbox, version 12.0.5. 68 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/12.0.5/code/models/uninstall.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/12.0.5/raw/models/uninstall.php
- Modified: 2025-10-06T13:35:18+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/css-javascript-toolbox/12.0.5/code/models/uninstall.php#L10-L20`.

```php
<?php
/**
*
*/

// Disallow direct access.
defined('ABSPATH') or die("Access denied");

/**
* Provide uninstall functions
* required for cleaning up the installation
* process!
*
* @author CJT-Team
*/
class CJTUninstallModel {

	/**
	* put your comment there...
	*
	*/
	public function database() {
		// Import dependencies.
		cssJsToolbox::import('framework:installer:dbfile.class.php');
		// Load Uninstallation SQL Statements!
		CJTDBFileInstaller::getInstance(cssJsToolbox::resolvePath('models:uninstall:db:mysql:uninstall.sql.php'))
		// Execute All,
		->exec();
		// Chaining!
		return $this;
	}

	/**
	* put your comment there...
	*
	*/
	public function expressUninstall() {
		// Clean up database
		$this->database();
		// Clean up file system!
		$this->fileSystem();
		// Chaining!
		return $this;
	}

	/**
	* put your comment there...
	*
	*/
	public function fileSystem() {
		global $wp_filesystem;
		// Getting directory list!
		$wpContentDir = WP_CONTENT_DIR;
		$fSConfig = cssJSToolbox::$config->fileSystem;
		// Directories to create!
		$directories = array(
			"{$wpContentDir}/{$fSConfig->contentDir}",
			"{$wpContentDir}/{$fSConfig->contentDir}/{$fSConfig->templatesDir}",
		);
		// Delete all directories!
		foreach ($directories as $dir) {
			$wp_filesystem->delete($dir, true);
		}
		// Chaining!
		return $this;
	}

} // End class.
```
