 Hamburg served with the High Seas Fleet for the first eight years on active duty . For the rest of her career , she served with U @-@ boat flotillas , first as a flagship for the I U @-@ boat Flotilla and later as a barracks ship for U @-@ boat crews during World War I. she returned to fleet duty with the Reichsmarine after the end of the war , but returned to barracks ship duties starting in 1936 , though 1944 . She was towed to her namesake city in early July 1944 for scrapping , but was sunk by British bombers toward the end of the month . The wreck was raised in 1949 and subsequently dismantled in 1956 . 
