Skip to main content

deleteVoxelUpdates

Removes an app's recorded voxel edits (the voxel_updates log), whoever made them: every edit of the app (everything: true), those in a box of chunks (lowChunk and highChunk), those made in a time window (from, to), or a box and a window together. DEFAULTS to a dry run (dryRun: true) that counts what would be removed; pass dryRun: false to remove them (DESTRUCTIVE: they cannot be brought back, and a later rollbackVoxelUpdates does not restore them). One call removes for a bounded time: when complete is false, call again with the same input until it is true. Where an edit is removed the chunk reads as it did before the edit: its stored grid if it has one, otherwise whatever the game generates there. Stored chunk grids are not touched, and the edit history (voxelUpdateHistory) keeps every edit and records each removal. A read of listVoxelUpdatesByDistance with since does not report a removal (a removed edit is simply no longer returned), so a game server reads its ground again afterwards. The chunks are announced to the app's hubs as any voxel change is, unless one call removed edits from more than 2,048 chunks. Requires manage_apps on the app: call it with an app token of an account that holds it.

deleteVoxelUpdates(
input: DeleteVoxelUpdatesInput!
): DeleteVoxelUpdatesResult!

Arguments​

deleteVoxelUpdates.input ● DeleteVoxelUpdatesInput! non-null input​

Type​

DeleteVoxelUpdatesResult object​

What a deleteVoxelUpdates call removed, or in a dry run what it would remove.