add hideOverwritten parameter to getDeletedDocuments