How to remove a Cell by scripting?

Hi,

I want to remove a Cell using script language. I'm using something like:

\$doc->Cells->ClearItems();

but nothing happens. In the attachment you will find the code.

Any suggestion will be appreciated.

Thanks in advance.
César.-