Business Suite v7 is available now. Check out What's new.

Writing uninstaller

You might want to remove the database tables or any additional data that created your plugin when it's uninstalled. To do this, you will create a file named uninstall.php and you will write your uninstaller codes here, For notes we were created app_notes table, so we want to drop this table when plugin is uninstalled-

Here is the codes for this-

<?php
$table = new Schema('app_notes');
$table->drop();