DocumentationDocumentation
Darty.ai
Get Started
Basics
Methods
Colors
UI
Workflows
Darty.ai
Get Started
Basics
Methods
Colors
UI
Workflows
  • Get Started

    • Installation and Login
    • Your First Darty Document
    • Installers - Instructions and Downloads
    • Licensing
  • Basics

    • Darty Basics
    • Darty Header
    • Darty Tags
  • Methods

    • Darty Methods
    • Align
    • Appearance - General
    • Appearance - Colors & Swatches
    • Appearance - Effect Properties
    • Artboard Methods
    • Arrange
    • Attributes
    • Clean Document
    • Clipping Mask Make and Release
    • Color Mode
    • Compound Path - Make and Release
    • Distribute
    • Duplicate
    • Expand
    • Fit To Bounds
    • Group & Ungroup
    • Layer Methods
    • Outline
    • Pathfinder
    • Place
    • Rasterize
    • Reduce To Basic Appearance
    • Remove
    • Swatch Methods
    • Tags Methods
    • Text
    • Transform Methods
    • zOrder
    • Skip and *
  • Colors

    • Color Libraries
  • User Interface

    • Darty User-Interface
    • Tags Tab
    • Data Tab
    • Export Tab
    • Settings Tab
    • Help Tab
    • Export Settings
    • Export Validation
    • Job Export Settings
    • Export Counter Variables
    • Export Progress
    • Export Presets
    • Recent Files
    • Color Dialog
  • Cloud Data

    • Darty-Ai Cloud Data Integrations
    • Darty-Ai with Google Sheets
  • Workflows

    • Darty Workflows
    • Darty Preview
    • Darty Export Workflows
    • Darty Data Workflows

Clean Document

The cleanDocument method it used for removing unused symbols and swatches from a document before exporting as an Illustrator, PDF or EPS document.
When the method is used, by default both unused symbols and swatches will be removed.
To keep swatches, set the swatches property to false.
To keep symbols, set the symbols property to false.
To remove both unused swatches and symbols used the *, swatches or symbols properties and leave the values blank or set to true.

Clean Properties

ModeDescription
* 
Leave blank if you want both unused swatches and symbols removed.
skip 
skip is a generic property for all methods, when set to true, the method will be skipped. See * and Skip for details.
Valid Values: true or false
swatches 
Set to false if you do not want unused swatches to be removed.
Valid Values: false, true
symbols 
Set to false if you do not want unused symbols to be removed.
Valid Values: false, true

Example CleanDocument Spreadsheet

*
cleancomment
*swatchessymbols*
With no values given, will remove both unused swatches and symbols
FALSEWill only remove symbols
FALSEWill only remove swatches
TRUEIf there are no other properties on the table 🤨 and it's the last row in the table, you need to set a true value.

Sample Download Links

Download: clean-document.csv
Download: clean-document.ai
Download: clean-document.zip
Last Updated: 3/17/26, 2:19 AM
Contributors: Trevor
Prev
Attributes
Next
Clipping Mask Make and Release