On 22 May, "Whitshed" escorted ships carrying troops of the 20th Guards Brigade to Boulogne in order to hold the town while evacuation operations took place, with "Whitshed" carrying anti-tank guns. On her return journey she carried RAF personnel, Prisoners of War and civilians back to England. She returned to Boulogne on 23 May as evacuation operations continued, picking up wounded troops and shelling German forces before being damaged by German bombers, with one killed and 13 wounded. Later that evening, when some air cover was available, "Whitshed" along with sister ship , reentered Boulogne, with each ship embarking over 550 men. On the 26th she deployed for the evacuation of Allied troops from Dunkirk (Operation Dynamo). At this time her pennant number was changed to I77 for visual signalling purposes. Upon release from Op Dynamo she returned to Harwich and convoy defence, and anti-invasion patrols in the North Sea and English Channel. She was one of the few ships not damaged at Dunkirk.