delete
delete deletes a cloud object or all objects in a cloud set
Runs on: the server only. The statement that calls it runs on the server, and its result is a server-side value: the server keeps it, the device never writes it, and it is copied to the device only when a device statement reads it.
Format:
delete(target)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| target | mixed | An object or set of objects to delete. If the argument is a cloudset, then *all* the objects on the set will be deleted @Server Side Only |
Examples
delete(subset(everything(),"is_temporary",true))
delete(user.profile_photo)