Does this code cause a memory leak in JavaScript?

Please have a look at the following code:

universe.makeFramework = function ()
{
const fw = Framework ();
fw.version = 0;
fw.uni = this;
universe.fws.add (fw); // keep a framework reference in a set
fw.realise (universe.ctrl);
idToObj.set (nextId, fw); // keep a frame reference in a map
++ nextId;
}

Basically, I have a universe that could have one or more framework objects. In this function (makeFramework) I create a new frame and keep its reference in a map and a set.

Now suppose a situation in which I want to delete this frame. So I have to remove the references of map, set and also DOM. Is it enough? Should I worry about the const fw? Should I do something like below?

universe.makeFramework = function ()
{
let fw = Framework ();
fw.version = 0;
fw.uni = this;
universe.fws.add (fw); // keep a framework reference in a set
fw.realise (universe.ctrl);
idToObj.set (nextId, fw); // keep a frame reference in a map
++ nextId;
fw = not defined;
}