delete function for delete the data inside table