--- scheduler.module	2013-04-27 19:45:27.000000000 +0100
+++ scheduler.module	2013-05-09 08:20:17.000000000 +0100
@@ -665,6 +665,27 @@ function scheduler_nodeapi(&$node, $op, 
 }
 
 /**
+ * Implementation of hook_node_type().
+ */
+function scheduler_node_type($op, $info) {
+  switch ($op) {
+    case 'delete':
+      $variables = array();
+      $variables[] = "scheduler_publish_enable_" . $info->type;
+      $variables[] = "scheduler_publish_touch_" . $info->type;
+      $variables[] = "scheduler_publish_required_" . $info->type;
+      $variables[] = "scheduler_publish_revision_" . $info->type;
+      $variables[] = "scheduler_unpublish_enable_" . $info->type;
+      $variables[] = "scheduler_unpublish_required_" . $info->type;
+      $variables[] = "scheduler_unpublish_revision_" . $info->type;
+      foreach ($variables as $variable) {
+        variable_del($variable);
+      }
+      break;
+  }
+}
+
+/**
  * Implementation of hook_cron().
  */
 function scheduler_cron() {
