Implement clear operation.