This method is used to delete this bitmap resource from it's Library. This method
also deletes the memory in use by this bitmap resource.
function onTest()
{
var library = shell.getLibrary("../theme/toolkit.box");
if (library)
{
var bitmap = library.getResourceById("myBmp");
if (bitmap)
{
bitmap.deleteBitmap();
}
}
}