demo_requests_delete_cookies.py:
import requests url = 'https://begtut.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)
➜ begtut>python demo_requests_delete_cookies.py
200