add option to delete key patterns