fix missing optional arg for cleanup by ids