demo_requests_delete_cookies.py:
import requests url = 'https://w3schools.com/python/demopage2.php' #use the 'cookies' parameter to send cookies to the server: x = requests.delete(url, cookies = {"favcolor": "Red"}) print(x.status_code)
C:\Users\My Name>python demo_requests_delete_cookies.py
200