Your cart is empty!
Uninstall
public function uninstall(int $id) : void
Fires while deleting an existing cron job.
Description
Unlike the install method defined by the Installable interface, the uninstall method is triggered when a cron job is deleted. Its purpose is to wipe out all the additional data created during installation.
Parameters
- $id
-
(int) The cron job unique ID (primary key).
Return Value
None.
Example
/**
* @inheritDoc
*
* @see Installable
*/
public function uninstall(int $id)
{
$db = \JFactory::getDbo();
// uninstall the column used to track the fetched reservation
$db->setQuery("ALTER TABLE `#__vikrestaurants_reservation` DROP COLUMN `cron_exec_tracked_{$id}`");
$db->execute();
}
Last Update: 18 hours ago.
Helpful?