Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Deploy a task to delete or replace a CloudObject after a delay
ResourceFunction["ScheduleCloudObjectExpiration"][cloudobject] schedules a task to delete the given CloudObject after a delay. | |
ResourceFunction["ScheduleCloudObjectExpiration"][cloudobject,newexpr] schedules a task to deploy newexpr to the given CloudObject after a delay. |
| "Delay" | "Hourly" | how long to wait before modifying the object |
| "ReplacementFunction" | CloudDeploy | which function to use when replacing the object |
| "Hourly" | delete object after an hour |
| "Daily" | delete object after a day |
| "Weekly" | delete object after a week |
| "Monthly" | delete object after a month |
| "Yearly" | delete object after a year |
| Quantity[…] | delete object after a specified time interval |
| DateObject[patt] | delete object on a specified day and/or time |
Deploy a random image to a new unnamed object in the Wolfram Cloud and schedule its removal:
| In[1]:= |
| Out[1]= |
See that a task as been created to delete the resulting CloudObject:
| In[2]:= |
| Out[2]= |
Deploy a FormFunction to a named location:
| In[3]:= |
| Out[29]= |
Schedule the replacement of the form with a new one:
| In[30]:= |
| Out[30]= |
Set an object to be deleted in one year:
| In[31]:= |
| Out[31]= |
Set an object to be deleted at a specific time:
| In[32]:= |
| Out[32]= |
Use
to specify a deletion time:
| In[33]:= |
| Out[33]= |
Deploy a registration form and set an expiration to prevent entries after a deadline:
| In[35]:= | ![]() |
| Out[35]= |
Specific times for scheduled tasks may be adjusted by the cloud. This deployment was ultimately scheduled for deletion at 1:48 instead of 1:00:
| In[36]:= |
| Out[36]= |
This work is licensed under a Creative Commons Attribution 4.0 International License