Delete Empty Layers Script

Written by

in

This script will remove all empty layers and sublayers.

Download deleteEmptyLayers Script

Installing and Executing Scripts

Comments

12 responses to “Delete Empty Layers Script”

  1. TerryV Avatar
    TerryV

    Thank you for sharing!

  2. Khalid Avatar
    Khalid

    Thank you so much!

  3. Matias Avatar
    Matias

    Thank you!

  4. […] interessante per quanto riguarda l’ottimizzazione dei progetti. Si chiama Delete Empty Layers (lo trovi a questo link) e consente, con un clic di rimuovere tutti i livelli vuoti presenti in un documento Durante il […]

  5. Ashish Gupta Avatar
    Ashish Gupta

    Thank You Soo much for this!! 🙂 Helped me a lot!

  6. RP Avatar
    RP

    This is great! Is there a way to have a similar script that removes hidden layers and sublayers? I’ve found a couple on the web, but they don’t remove all sublayers (nested several layers deep). Would be VERY helpful.

  7. Daniel Augustin Avatar

    This scripts etc are over complicated…

    Easiest way is to unhide every layer including empty layers.
    Now Ctrl+A as a select all. Than Ctrl+X to cut it out.
    Than in the layers top right corner select “flatten artwork” command so the whole artboard will reduce do one layer – now you have united – deleted all empty layers at once.
    Finally check the check box in the top right layers options dropdown menu saying “Paste remembers layers”

    Ctrl+F and voilaa… All occupied layers including names will appear separated without empty layers.

    1. Morely Nadd Avatar
      Morely Nadd

      “Easiest way ….. (6 steps later) ….“Paste remembers layers”

      or just run this brilliant script. =]

      1. Carlos Avatar
        Carlos

        Lol, right? That sounds the opposite of “easiest…”

    2. Disco Ghost Avatar
      Disco Ghost

      sir, YOU ARE A STAR! easy as abc, it took me literally 10 seconds 🙂 thanks!

  8. Roei Avatar

    thank you very much 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

Cookie Preferences

We use cookies to enhance your experience. Choose which types of cookies you want to allow.

Strictly Necessary

Required

Required for core site functions such as security, load balancing, login sessions and remembering your cookie choices. No data is shared with third parties. Cannot be disabled.

Functional

Remember choices you make (language, region, preferences) to provide enhanced, personalized features. May set cookies from embedded services you interact with, such as video players or maps.

Analytics

Measure how visitors use the site (pages viewed, time on page, referring source) so we can improve it. Data may be processed by analytics providers such as Google Analytics, generally in aggregated form.

Marketing

Build a profile of your interests to show relevant advertising on this and other sites, and measure ad performance. Data may be shared with advertising partners such as Google Ads and Meta (Facebook).