The grid is just a single text field with newlines. To clear it, just set the text value to "".
Try this code.
from tkinter import *
roots = Tk()
roots.title("Email's save")
roots.geometry("500x500")
e = Entry(roots)
e.grid(row=0, column=1)
e.focus_set()
p = Entry(roots, show="*")
p.grid(row=1, column=1)
p.focus_set()
textEmail = StringVar()
textPassword = StringVar()
def callback():
textEmail.set(textEmail.get() + e.get() + "\n")
textPassword.set(textPassword.get() + p.get() + "\n")
def clearentries():
e.delete(0, 'end')
p.delete(0, 'end')
def cleargrid():
textEmail.set("")
textPassword.set("")
def EmailPassword():
print ('save')
global lstlabels
email = Label(roots, text="Email: ",font=('Courier', 14))
email.grid(row=0, sticky=W)
passoword = Label(roots, text="Password: ",font=('Courier', 14))
passoword.grid(row=1, sticky=W)
saved_email = Label(roots, text="Saved Email",font=('Courier', 14))
saved_email.grid(row=15, column=0)
saved_password = Label(roots, text="Password",font=('Courier', 14))
saved_password.grid(row=15, column=15)
write_email = Label(roots, textvariable=textEmail,font=('Courier', 14))
write_email.grid(row=20, column=0)
write_password = Label(roots, textvariable=textPassword,font=('Courier', 14))
write_password.grid(row=20, column=15)
btn_save = Button(roots, text="Save", command= callback)
btn_save.grid(row=10, column=2, sticky=W)
btn_del = Button(roots, text="X", fg="red", command= cleargrid) # reset grid
btn_del.grid(row=60, column= 20)
roots.mainloop()
def key(event): # listen for key press
if event.keysym == 'Delete':
clearentries() # clear text boxes
roots.bind_all('<Key>', key)
EmailPassword()