more generic remove