import requests
#the required first parameter of the 'delete' method is the 'url':
x = requests.delete('https://w3schools.com/python/demopage.php')
#print the response text (the content of the requested file):
print(x.text)