def file_deletion_check(self, metadata, db_metadata):
        deleted = db_metadata.get('is_deleted', False)
        if deleted and metadata is not None:
            plug.logger.debug(u"Delete detected on Dropbox of "
                              u"file {}".format(metadata.filename))
            plug.delete_file(metadata)
        elif metadata is None:
            plug.logger.debug(u"Unknown Dropbox file '{}' was deleted, skipped"
                              .format(db_metadata['path']))
            deleted = True
        return deleted
Check if a file has been deleted on Dropbox
dataset/ETHPy150Open onitu/onitu/drivers/dropbox/onitu_dropbox/dropbox_driver.py/CheckChanges.file_deletion_check