I am trying to store items, urls and prices within a MySQL database and wanted to give the user the option to delete the item based on the name. I am trying to do this by using a DELETE sql statement but it just returns "0 item removed" and I am guessing it is not able to find the entry, whether that be that it is not taking the input or what. Any help would be appreciated as I would really like to get the hang of this!
def deleteItem(): 
    goneItem = input("Enter item: ")
    removeItem = "DELETE FROM amazon_items WHERE itemName = '%s'"
    mycursor.execute(removeItem, goneItem)
    db.commit()
    print(mycursor.rowcount, "item removed")
 
     
     
    