> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Clear Document

> Remove all content from Google Docs documents to prepare them for fresh content.

**Clear Document** removes all content from your Google Docs document, leaving you with a completely blank document. Essential for preparing templates for new content, resetting documents for fresh data, or cleaning up before importing new information.

***

## Inputs

| Field               | Type | Required | Description                     |
| ------------------- | ---- | -------- | ------------------------------- |
| **Document URL/ID** | Text | Yes      | Google Docs document link or ID |

***

## How It Works

This node removes all text, formatting, images, tables, and other content from your Google Docs document. After clearing, you have a completely blank document ready for new content.

**⚠️ Important**: This action cannot be undone through the workflow. All content will be permanently removed.

### What Gets Cleared

* **All text content** - paragraphs, headers, lists
* **All formatting** - bold, italic, colors, styles
* **All images** - photos, charts, diagrams
* **All tables** - data tables and their content
* **All other elements** - drawings, links, comments

### What Stays

* **Document properties** - title, sharing settings, permissions
* **Document structure** - it remains a Google Docs document
* **Collaboration features** - sharing and commenting capabilities

***

## Configuration Examples

### Weekly Report Reset

**Scenario:** Clear last week's report to prepare for new week's data

**Setup:**

1. **Clear Document** to remove old content
2. **Append Text** to add new week's header and data

**Result:** Fresh document ready for current week's reporting.

### Template Preparation

**Scenario:** Reset a document template that has sample data

**Workflow:**

1. **Clear Document** to remove all sample content
2. **Replace Text** or **Append Text** to add real data

**Result:** Clean template ready for actual content.

### Error Recovery

**Scenario:** Document has corrupted or incorrect content

**Recovery Process:**

1. **Clear Document** to remove problematic content
2. **Rebuild content** using other workflow nodes
3. **Verify results** before proceeding

**Result:** Clean slate for rebuilding content correctly.

***

## Best Practices

### Safety Measures

* **Always backup important documents** before clearing
* **Test on document copies** before running on originals
* **Use Google Docs version history** as additional backup
* **Verify document URL** to avoid clearing wrong documents

### Workflow Design

* **Clear before major content changes** for cleanest results
* **Follow clearing with content creation** nodes immediately
* **Use in scheduled workflows** for regular document maintenance
* **Combine with conditional logic** to clear only when needed

### Document Management

* **Keep master templates** separate from working documents
* **Use consistent naming** for documents in workflows
* **Document your clearing strategy** for team workflows
* **Consider document permissions** before automated clearing

### Alternative Approaches

* **Consider Replace Text** for partial updates instead of full clearing
* **Use Append Text with page breaks** instead of clearing for continuous logs
* **Create new documents** instead of clearing for historical records
* **Use Google Docs templates** instead of clearing existing documents

***

## Credit Cost

1 credit per successful run.

***

## FAQ

<Accordion title="Can I undo clearing a document?">
  **Not through the workflow**, but you have options: **Google Docs version history** lets you restore previous versions, or use **document backups** if you created them before clearing. Always backup important documents before clearing.
</Accordion>

<Accordion title="Will this affect document sharing and permissions?">
  **No, only the content is removed.** Document sharing settings, permissions, comments, and collaboration features remain unchanged. Team members will still have the same access level to the now-empty document.
</Accordion>

<Accordion title="What happens to comments and suggestions in the document?">
  **Comments and suggestions are removed** along with the content they were attached to. If you need to preserve feedback, screenshot or copy comments before clearing the document.
</Accordion>

<Accordion title="Is there a way to clear only specific parts of a document?">
  **No, this node clears everything.** For partial clearing, use **Replace Text** to replace specific sections with empty text, or manually edit the document. Clear Document is all-or-nothing.
</Accordion>

<Accordion title="Should I clear documents or create new ones?">
  **Clear documents when**: you want to keep the same URL/sharing settings, working with templates, or doing regular refreshes. **Create new documents when**: you need to preserve history, want separate documents for different periods, or working with one-time reports.
</Accordion>

<Accordion title="How quickly does the clearing happen?">
  **Clearing is usually instant** for normal-sized documents. Very large documents (100+ pages) might take a few seconds. The document will be completely empty when the node completes.
</Accordion>

<Accordion title="What if multiple people are editing the document when it's cleared?">
  **The document will be cleared for everyone** viewing it. This might disrupt other users' work, so coordinate with your team before running workflows that clear shared documents, or work on copies.
</Accordion>

<Accordion title="Can I clear multiple documents at once?">
  **No, each Clear Document node handles one document.** To clear multiple documents, use multiple Clear Document nodes in your workflow, each targeting a different document URL/ID.
</Accordion>
