delete keys when deleting non-empty table