In 1922, "Itasca" was determined to be too small for the cadet corps, and was decommissioned and scrapped. She was then replaced by the three-masted barquentine "Alexander Hamilton", a former Navy gunboat from the Spanish–American War. "Alexander Hamilton" was in service at the Coast Guard Academy until 1930; after her decommissioning in 1944, "Alexander Hamilton"s mainmast was returned to New London and served as the Academy's flagpole until 1954. During the 1930s, the Academy did not have a resident sailing vessel for cadet training. In 1939, the Danish Navy's sail training vessel was in New York City to take part in the 1939 World's Fair. After World War II broke out, the ship was offered to the U.S. government and transferred to the Coast Guard Academy, where she was commissioned as USCGC "Danmark" and served as the cadet training ship until 26 September 1945, when she was returned to the Danish government.