Implemented Deleting Function