Removing data from a variable
<p>I have a variable which carries information but i want to be able to remove the information some how.</p>

<p>I tried to set the .length = 0 but that didn't seem to work...</p>

<p>The current data of the variable (example data is):</p>

<pre><code>var data = {"1":{"7":["310"],"22":["309"]}}
</code></pre>

<p>In english that is:</p>

<pre><code>var data = {"X":{"Y":["ID"],"Y":["ID"]}}
</code></pre>

<p>So if i wanted to remove:</p>

<pre><code>X: 1 Y : 22 
</code></pre>

<p>The result of data would be:</p>

<pre><code>var data = {"1":{"7":["310"]}};
</code></pre>

<p>This is what i tried:</p>

<pre><code>data[X][Y].length = 0;
</code></pre>

<p>But that doesn't seem to work, any one understand how to do it?</p>
