 		</table>
 		<br><input type="submit" value="add task">
 	</form>
+</cfif>
+
+<cfif action is "deleteTask">
+	<cfquery name="deleteTask" datasource="uam_god">
+		delete from cf_crontab where cf_crontab_id=#cf_crontab_id#
+	</cfquery>
+	<cflocation url="scheduler.cfm" addtoken="false">
 </cfif>
 <cfif action is "addTask">
 	<cfquery name="addTask" datasource="uam_god">

				<td>#cron_mon#</td>
				<td>#cron_dow#</td>
				<td>#cron_sec# #cron_min# #cron_hour# #cron_dom# #cron_mon# #cron_dow#</td>
			</tr>

			<!--- and actually build the tasks ---->

			<th>M</th>
			<th>DoW</th>
			<th>expr</th>
			<th>bye</th>
		</tr>
		<cfloop query="sched">
			<tr>
