Detach all types of attached objects

Hi,

Is there a way to detach a grid from a layout cell?
And to detach any other of the different types of objects attached to it?

Thanks

You should be able to do it like this.
layout.cells(‘cellId’).detachObject(true);