Added the delete function and deletebyid function.