Add delete_all_merged method