Will restarting a mission affect my rank?

//ads -- adsterra.com -- native banner
?>
Like the title says I'm wondering if I get a clean slate if I restart a mission.
Here's a scenario: I've been trying a mission over and over from checkpoint, triggering alarms and whatnot. This will obviously affect my rank since it will deduct a lot of points.
I don't want this (who would?). Now, once again for the question: Will I get a complete do-over if I restart the mission? Granting me the ability to get that long awaited S-rank instead of that lousy D-rank?
Pictures about "Will restarting a mission affect my rank?"



The Problem with Rank Resets
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: RODNAE Productions, Kony Xyzx, Art Guzman, Kony Xyzx