hello Ibrahim ,
Not quite sure about your ask .
per the last command configured : If we do not committ above config within 2 mins system will itself rollback to last known good configuration.
However ask somewhere sound like " how to clear uncommited configuration", below are a couple of examples we could use to clear such configurations :
You could use "abort" to terminate a configuration session from any mode.
You could use clear configuration session <session id> ( get it from show configuration session ) to clear configuration session of another user.
Kindly correct me if i missed your original query ?
Regards
Sunil Bhadauria