Plex icon

Plex

Interact with Plex Media Server API

Library → Empty Trash

AI-generated

Summary

Empty the trash of a specified Plex library section, permanently removing items marked for deletion from that library.

Inputs

  • Library Key (required) — The key or ID of the Plex library section whose trash should be emptied.

Output shape

a JSON object containing the Plex API response to the empty trash request, wrapped in an array format used by n8n.

The output reflects the Plex server's response after attempting to empty the trash for the specified library section. No additional pagination or filtering applies.

Examples

Example 1: Remove all trashed items from the library section with key '1'.

Set 'Library Key' to '1' under the 'Empty Trash' operation for resource 'Library'.

Discussion