Sign In Register

How can we help you today?

Start a new topic

can I drop a whole table of data from Cloud Code?

In the Data Explorer, there is a button to drop all data for any given table. I often use this on my dev environment to have a clean testing slate. Is this possible to do in Cloud Code, or will I have to individually delete each document after querying them all from a table?

1 Comment

Hi Todd,


It is possible to drop your metadata (on preview) from cloud code, e.g.:


Spark.metaCollection("myCollection").drop();


Game Data Service Data Types on the other hand cannot be dropped through cloud code; this needs to be done via the Data Explorer or a REST request.


Regards,

Vinnie

Login to post a comment