Leave a mission
DeleteQuest(QuestID)
Example code
DeleteQuest(425124) --Leave the mission Demonstration Battle