It is easy to unintentionally delete a task. This is especially a problem if you don't notice which task it was.
My suggestion is to allow "locking" a task to prevent unintentional deletion, just as one can lock files. (Recurring tasks are a particular candidate.) Trying to delete the task would force an error message.