added destroy api.