You could use the methods which are created for removing the object, ins
var flashvars = {
name1: "hello",
name2: "world",
name3: "foobar"
};
var params = {
menu: "false"
};
var attributes = {
id: "testflash",
name: "test-swf"
};
swfobject.embedSWF("test.swf", "myContent", "300", "120", "10.2.0","expressInstall.swf", flashvars, params, attributes);
swfobject.removeSWF("testflash");
<div id="myContent">
<h1>Alternative content</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
https://code.google.com/p/swfobject/wiki/documentation