The docs mention that the function, deleteClientVariable, can be used to remove a client variable. Did you also know you can treat the Client scope like a struct? This means you can use structDelete(client, "x") to remove a particular client variable.