How do I unassign an AI Controller to a Pawn?

May be I help someone, get BrainComponent from Ai Controller then use StopLogic()