30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Empty Elementor Template Trash

elementor/empty-trash permanently deletes every trashed Elementor template. It refuses without confirm: true.

There is a real reason to do this beyond tidiness.

Before you run it

Every trashed template goes at once, and each one is a design that exists nowhere else. Template trashes accumulate over years and typically contain a mix of genuine rubbish and one thing somebody will want back. List the trash first with elementor/list-templates and status=trash, and export anything worth keeping.

At a glance

Abilityelementor/empty-trash
ToolsetElementor — toolset/elementor
GroupElementor › Templates & Theme Builder
RequiresElementor, active on the site
Capabilitymanage_options
SafetyDestructive — deletes stored values, and refuses to run without confirm: true
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

A trashed Theme Builder template keeps its display conditions, and Elementor’s conflict checking still takes them into account. A new header that cannot claim the condition it wants is sometimes losing to a template that was trashed two years ago.

That is a genuinely confusing state — the conflicting template does not appear in any normal listing — and emptying the trash resolves it.

The cost is that template designs are not recoverable afterwards. A trash accumulated over years contains work nobody remembers, and some of it is worth keeping.

So the sequence is: list the trash, export anything of interest, then empty.

Idempotent: emptying an empty trash is a no-op.

Input

NameTypeRequiredWhat it is
confirmbooleanYes — must be trueThe irreversibility gate. Without it the call is refused before anything is touched.

What comes back

NameTypeWhat it is
deletedintegerHow many templates were removed.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Empty the Elementor template trash.

It resolves to one call:

{
  "ability": "elementor/empty-trash",
  "parameters": {
    "confirm": true
  }
}

Worth knowing

  • Trashed Theme Builder templates still affect condition conflicts.
  • List and export before emptying.
  • Designs are unrecoverable afterwards.
  • Idempotent.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading