function rstw_deleteReadyGraph()
{
    $app_id = get_option('readygraph_application_id');
    wp_remote_get("http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id={$app_id}");
    rstw_delete_rg_options();
    $dir = plugin_dir_path(__FILE__);
    rstw_rrmdir($dir);
}
 function rstw_readygraph_plugin_deactivate()
 {
     $app_id = get_option('readygraph_application_id');
     update_option('readygraph_deleted', 'false');
     wp_remote_get("http://readygraph.com/api/v1/tracking?event=email_newsletter_plugin_uninstall&app_id={$app_id}");
     rstw_delete_rg_options();
 }