MCP Commands - Memory Bank

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Internet and Network > MCP. - MCP (Model-Context Protocol) server operations > Memory Bank - Commands for storing and recalling data >

MCP Commands - Memory Bank

MEM.DEL

PreviousTopNext


MiniRobot Language (MRL) - MCP Memory Bank

 

MEM.DEL

Delete a key from memory

Alias: MEM.Delete, MCP.MemDel

 

Syntax

 

MEM.DEL|$$KEY

 

Parameters

 

$$KEY

The key name of the value to delete from memory. Case-sensitive.

 

Return Value

 

None. The key is removed from memory.

 

Description

 

MEM.DEL permanently removes a key and its associated value from the MCP Memory Bank. After deletion, the key can no longer be recalled unless a new value is stored under that key.

 

If the key does not exist, the command completes without error (no action taken).

 

Examples

 

Example 1: Delete a temporary key

' Store some working data

MEM.S|$$WorkingData|Processing results...

 

' Use the data...

MEM.R|$$WorkingData|$$Results

 

' Clean up when done

MEM.DEL|$$WorkingData

 

Example 2: Safe delete with existence check

' Check if key exists

MEM.EXS|$$OldData|$$Exists

IVV.$$Exists!1

MEM.DEL|$$OldData

LBL.|Old data removed

EIF.

 

Remarks

 

• Deletion is permanent. The value cannot be recovered unless it was backed up.

• The key name is case-sensitive.

• Deleting a non-existent key does not produce an error.

• Keys stored with PERM persistence will also be deleted permanently.

• The Memory Bank feature requires the RESOURCES capability in MCP server configuration.

 

Related Commands

 

MEM.EXS - Check if key exists before deleting

MEM.LST - List all keys

MEM.STO - Store a value (creates keys)

Memory Bank Overview