Add function to delete key and value