A memory wipe (a.k.a. mind wipe) is the removal of an individual's memories. It is utilized by the Ghost Program, begun when the shortcomings of the psychic dampener became apparent in the wake of Sarah Kerrigan's defection in 2491. As such, memory wipes became standard operating procedure, allowing for more permanent control of its ghost agents, along with helping conceal information. Memory wipes ceased to be mandatory for ghost agents after Valerian Mengsk came to power.
The memory assignment protocol is run by an electrical device based in a room which nullifies the use of psychic powers. It is generally operated by Superintendent Sarco Angelini, himself a ghost.
In addition to long-term wipes, a wipe can be used to erase memories from a specific span of time. The device wouldn't be used on a severely injured ghost, however. Some residual memories may reside in the subject after a memory wipe, which can possibly influence their personality on the sub-concious level.
Terrazine can reverse the effects of a memory wipe through its rejuvenation of a telepath's brain cells. In addition, some forms of psychic trauma, such as that inflicted on Gabriel Tosh, also render memory wipes ineffective. In a more practical sense, ghosts can potentially learn of their previous missions by way of stored files, though these files require top-level clearance to access, with said access being doled out on a need to know basis.
During the Defenders of Man Insurgency, General Carolina Davis and the Defenders of Man made liberal use of mind wipes on Terran Dominion ghosts in order to ensure their loyalty to their cause. This technique was used on Nova Terra and her squad, Stone, Delta Emblock, and Pierce, in order to have them aid her in her scheme to weaken the rule of Emperor Valerian Mengsk. Nova was able to plant a message to herself however, and undo the mind wipe with the aid of terrazine.