This example removes the third paragraph.
TextParagraph paragraph = document.getParagraphs().item(3); paragraph.remove();
Related information
remove method