If a task function is specified, tasks can only be removed if they match that exact task function.
0.1
taskName
String
Null
A taskName or null.
If a taskName is specified, tasks can only be removed if they have that exact taskName.
Note that if you added tasks via an array in the instance.addTask() method, each of those tasks will have had the array index appended to it's taskName.
0.1
scope
Object
Null
A scope object or null.
If a scope object is specified, tasks can only be removed if they were added with that scope.