LiveCloud Forums
cdbBlobs Code Snipits - Printable Version

+- LiveCloud Forums (https://forums.livecloud.io)
+-- Forum: General (https://forums.livecloud.io/forumdisplay.php?fid=1)
+--- Forum: General (https://forums.livecloud.io/forumdisplay.php?fid=3)
+--- Thread: cdbBlobs Code Snipits (/showthread.php?tid=199)



cdbBlobs Code Snipits - clarencemartin - 10-14-2019

I have recorded the 2 cdbBlobs Code snippets.
The first one is an error.
the Highlighted portion of the code snippet shows: cdb_delete "cdbBlobs", tReordIDs,"cloud" in an error.
This is the same for the 2nd snippet also.
The snippet for the Batch delete is correct.


RE: cdbBlobs Code Snipits - mark_talluto - 10-14-2019

(10-14-2019, 05:48 PM)clarencemartin Wrote: I have recorded the 2 cdbBlobs Code snippets.
The first one is an error.
the Highlighted portion of the code snippet shows: cdb_delete "cdbBlobs", tReordIDs,"cloud" in an error.
This is the same for the 2nd snippet also.
The snippet for the Batch delete is correct.

Hi Clarence,

When deleting blobs, you will want to use the blob specific cdbs. For example:
cdb_deleteBlob tRecordID, "cloud"

The reason is that this API does more than delete the reference to your blob in the table. It also deletes the blob itself. The same is true of manage users on your cdb_Users table. Please use the Users related APIs to manage your users.