Finished delete function, first test working