Added the deletion routine