delete is NULL-safe.