#Remove blocks from history
3 messages · Page 1 of 1 (latest)
Hi @clear patio. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Currently, Warp does not provide a built-in feature to permanently delete or exclude individual blocks from your terminal history or session while interacting with Agent Mode. You can clear all blocks in a session using the CMD-K shortcut, but this removes all blocks, not just selected ones.
However, when using Agent Mode, you can control which blocks are attached as context to your query. To exclude certain previous blocks from being sent to the Agent, simply do not attach them:
- Use CMD-UP (macOS) or CTRL-UP (Windows/Linux) to attach previous blocks as context.
- To clear attached blocks from your query, use CMD-DOWN (macOS) or CTRL-DOWN (Windows/Linux) until the blocks are removed from context.
- You can also use your mouse: hold CMD (macOS) or CTRL (Windows/Linux) and click on attached blocks to clear them from the context.