May be you need apply Explicit waits and try different xpath.
Apply Wait like below and try:
# Imports Required
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
wait = WebDriverWait(driver,30)
deletebutton = wait.until(EC....
I am not familiar with Python, but I can make some suggestions.
First, visit the Selenium documentation site. You can find examples and detailed documentation using Selenium with Python here.
Next, to answer your specific question, instead of searching by class name, look for something that is unique to the item/s you are searching for. You may need to find ...