Correct me if I’m wrong haven’t Iowa class battleships all been decommissioned sometime in the early 1990s?
Whether this is true, it shows that the obsolescence of battleships (since aircraft carriers came on line) was recognized well before WWII.
We did get five of the eight battleships back (although some were basically cored out like a rotten tooth and rebuilt almost from scratch.) Two ships were left there (Utah and Arizona). Oklahoma was raised mostly to free up its slot in the harbor, but sank in 1947 while being towed to San Francisco Bay to be scrapped.
The BB's role in the Pacific War was as AA platforms and for shore bombardment.