Addtional Files Deleter

:placard: Summary Deletes addtional files assosiated with an image or scene object. Which will usually have identical PHashes for scenes or Checksum for images. Unless is a scene manually merged. Apply ignore tag to scene/image object for plugin to bypass.
:link: Repository https://github.com/stashapp/CommunityScripts/tree/main/plugins/additionalFilesDeleter
:information_source: Source URL https://stashapp.github.io/CommunityScripts/stable/index.yml
:open_book: Install How to install a plugin?

This plugin scans your Stash library for scenes or images where the file count is greater than 1. It skips the primary file for each object and deletes the additional files. In most cases, duplicate scene files are identical phash matches unless a scene was manually merged. Image objects with multiple files are typically grouped by identical checksums.

Usage

Copy the repository into your Stash plugins folder or add it through the plugin system and refresh plugins from the Settings screen.

If this is your first run, use the Create Tag task to create an ignore tag that can be applied to Scenes or Images so they are skipped when the other tasks run.

Other than the Create Tag task, you can run the following tasks:

  • Images - Delete
  • Images - Delete & Record
  • Scenes - Delete
  • Scenes - Delete & Record

Tasks that just specify Delete remove the additional files from the object. Delete & Record saves the deleted file paths with a "File: " prefix, appends them to the object’s current URL list, and updates the object. This is a precaution to preserve metadata that may be useful later.

rabidman
#General

the "Addtional files deleter (0.1)" (sic) plug-in no longer works for me in 0.29.3 . The "Scenes - Delete" task returns instantly without doing anything . Anyone else seeing this ?

1 Like

I don’t see any issue of this plugin. For we it works great. I’m using stash v0.30.1

Not working for me in Stash v0.31.1.
The image deletion works, but doesn’t work for scenes.

3 Likes

Like all destructive plugins would be nice if it let you dry run it to double check things looks good before actually deleting the data.

The “Scenes - Delete” task returns instantly without doing anything. Same for me, it worked in the past.

1 Like

same issue here stash v0.31.1

I pushed a potential fix. You might need to update stashapp-tools module or install new stashapi module.

Install the new package or update the old package:
pip install stashapi or pip install --upgrade stashapp-tools

1 Like