Add method to clear the adapter.