# gianism/1.1/uninstall.php

Gianism, version 1.1. 24 lines.

- Page: https://pluginprobe.com/plugins/gianism/1.1/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/gianism/1.1/raw/uninstall.php
- Modified: 2011-12-21T09:11:22+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/gianism/1.1/code/uninstall.php#L10-L20`.

```php
<?php
/*
 * Delete all data for Literally WordPress
 * 
 * @package gianism
 * @since 1.0
 */
//Check whether WordPress is initialized or not.
if(!defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN')){
	exit();
}

//Delete Option
delete_option('wp_gianism_option');

//Delete All message if exists.
$query = new WP_Query('post_type=gianism_message&posts_per_page=-1');
if($query->have_posts()){
	while($query->have_posts()){
		$query->the_post();
		wp_delete_post(get_the_ID());
	}
	wp_reset_query();
}
```
