WordPress (Creating a plugin from scratch) Part 3 Deactivation code and destroying tables
Channel: Wade Penistone
Date: 09/02/2012

This tutorial covers similar aspects to the last tutorial except working in reverse and creating a way for your plugin to execute code when it is deactivated/uninstalled and at the same time destroying (dropping) the tables you created on plugin installation providing your plugin with a full install/uninstall implementation.

Grab the files - HERE: https://github.com/Truemedia/WordPress-plugin-from-scratch/zipball/part_3