Delete one or more messages from chat history

Sometimes a prompt message and it’s response
in chat wasn’t very good, and we don’t want it to be part of the history and therefore the context of subsequent prompts. Could we edit the chat history to remove or or more messages so we can better shape future generated output?