'Python/Selenium - Clear the cookies in my chrome webdriver?

I'm trying to clearcookies in my chrome browser (webdriver from selenium) but I can't find any solutions for specifically the chrome driver. How do I clear the cache and cookies in Python?

import undetected_chromedriver.v2 as uc
if __name__ == '__main__':
    driver = uc.Chrome()
    dar_like()
    driver.delete_all_cookies()
    driver.get('https://www.google.com') 


Solution 1:[1]

Cookies and cache are never saved unless you set a profile in options or manually save them via pickle etc.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 BillyZee