demo_requests_delete_auth.py:
import requests url = 'https://w3schools.com/python/demopage.php' #use the 'auth' parameter to send requests with HTTP Basic Auth: x = requests.delete(url, auth = ('user', 'pass')) print(x.status_code)
C:\Users\My Name>python demo_requests_delete_auth.py
200