This is the basic delete fucntion, you guys can check it. Again, if you have any ideas, just tell me