How to delete input field?

  dim Field as object
  Field = ThisComponent.createInstance("com.sun.star.text.TextField.Input")
  Field.Hint = "Field1"
  Field.Content = "abc"
  ThisComponent.getText.InsertTextContent(ThisComponent.getText.createTextCursor, Field, True)
  Field.getAnchor.getText.RemoveTextContent(Field)

Field was not deleted! But why?

LibreOffice 4.2 windows. In OO it works fine.

To delete it, you should try ThisComponent.getText().RemoveTextContent(Field)