title: Wordpress plugin options need to delete after deactivate & uninstall
body: <p>I have developed a WordPress plugin and I need to delete the options I am creating when uninstalling. What I did is I created a file called uninstall.php and included the following code:</p>
  <pre><code>&lt;?php
  
  function WCM_Setup_Demo_on_uninstall()
  {
    //if uninstall not called from WordPress exit
    if (!defined('WP_UNINSTALL_PLUGIN'))
      exit();
  
    $video - thumbnail1 = 'video-thumbnail1';
  
  
    // For Single site
    if (!is_multisite()) {
      delete_option($video - thumbnail1);
    }
  }
  
  ?&gt;
  </code></pre>
  <p>And included this in my main plugin file:</p>
  <pre><code>register_uninstall_hook('uninstall.php', 'WCM_Setup_Demo_on_uninstall');
  </code></pre>
  <p>This is how i'm registering the option in my main plugin file:</p>
  <pre><code>register_setting( 'baw-settings-group', 'video-thumbnail1' );
  </code></pre>
  <p>When I deactivated and deleted the plugin from the dashboard, the plugin gets deactivated but not deleted. When one press delete a blank white page comes up.</p>