RemoveScheduledTask
RemoveScheduledTask[obj]
removes obj from the list of currently scheduled local or cloud tasks.
Details
- obj can be a ScheduledTaskObject expression, or a CloudObject containing a ScheduledTask expression or DocumentGenerator.
- For scheduled tasks in the cloud, RemoveScheduledTask is effectively equivalent to DeleteFile[CloudObject[…]].
- RemoveScheduledTask returns a single ScheduledTaskObject or CloudObject expression or a list of expressions that have been removed.
- RemoveScheduledTask has attribute Listable.
Examples
Basic Examples (7)
Create a task that removes itself:
Remove the task automatically when it is not needed:
The second task was automatically removed:
Create a task that runs only once and removes itself after finishing:
Create a task that removes itself once a condition is met:
Create a task that removes itself when an external variable is changed:
Text
Wolfram Research (2010), RemoveScheduledTask, Wolfram Language function, https://reference.wolfram.com/language/ref/RemoveScheduledTask.html (updated 2014).
CMS
Wolfram Language. 2010. "RemoveScheduledTask." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/RemoveScheduledTask.html.
APA
Wolfram Language. (2010). RemoveScheduledTask. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RemoveScheduledTask.html