How to clear list memory using apex in Salesforce?

List<account> objList = new List<account>();
objList.add(new Account(name = 'Test Account');
objList.clear(); //Clear the account list