Allow undoing recent actions
The “Undo” option in user interfaces allows users to easily reverse actions and acts as a safety net, reducing the stress and consequences of errors. For example, consider users hastily sending an email before it's fully ready. If they realize a mistake right after hitting send — perhaps forgetting an attachment or needing to correct information — an “Undo” option available for a brief period allows them to retract the email. This capability saves them from potential embarrassment or miscommunication and is a feature appreciated by many users of popular email platforms.
By incorporating this feature, you acknowledge that users are human and prone to errors, particularly when multitasking or working under pressure.