remove

abstract fun remove(key: AIAgentStorageKey<*>): Boolean(source)

Removes a feature or data associated with the specified key from the agent's storage.

Return

true if the data was successfully removed, or false if no data was associated with the provided key.

Parameters

key

A uniquely identifying key of type AIAgentStorageKey used to locate the data to be removed.