We are adapting the SharePoint dataloader for a client and they want any items deleted in SharePoint to be correspondingly deleted in Squirro. The dataloader uses a delta API to retrieve new or edited items, including items that have been deleted. Right now the code skips over any files that are deleted:
for file_entry in _file_entries():
is_file = "file" in file_entry
deleted = "deleted" in file_entry
if not is_file or deleted:
continue
but we would want to get the item’s ID and delete it from Squirro.
Are there any other dataloaders that implement deletion? We could implement deletion by creating a SquirroClient, looking up matching items, and then deleting them, but is there a more standard way to implement this?