Scheduled deletion of objects in IBM Cloud Object Storage using Node SDK

96 Views Asked by At

Is it possible to do scheduled deletion using the Node SDK ?

I can't find a function or parameter in the SDK that would let me do it.

If it's not possible with the SDK as-is, any pointers for a workaround (e.g. how to manually craft an HTTP request in Node that would serve the same purpose - can I use the Node SDK to prepare a template request or token?) would be really useful.

1

There are 1 best solutions below

2
On

Not within the SDK itself - COS doesn't support object expiry or lifecycle policies yet.

To schedule operations within your application logic, might want to check out the later (link) or node-cron (link) packages.