I have a unique plugin whose purpose is to set up a new WordPress site with a theme, default widgets, default plugins, custom menus, pages, posts, etc.
The plugin does everything it needs to do when activated and never runs again.
I'm looking for suggestions on how I might, as the last step in the activation routine, deactivate and delete the plugin.
Any help, suggestions, or example references appreciated.