Sometimes append operations do not succeed, whether due to conflicts between the two datasets or other server-side issues. Failed appends can leave behind "error" status batch records, which can cause confusion. This function lets you delete batches that don't match the status or statuses you want to keep.
cleanseBatches(dataset, keep = c("imported", "appended"))
dataset
with the specified batches removed.
CrunchDataset
character the statuses that you want to keep. By default, batches that don't have either "imported" or "appended" status will be deleted.