Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting all files made by this plugin #138

Open
the-flamer opened this issue Jan 25, 2024 · 2 comments
Open

Deleting all files made by this plugin #138

the-flamer opened this issue Jan 25, 2024 · 2 comments

Comments

@the-flamer
Copy link

I have removed the plugin from my system due to its infrequent usage. i was wondering how to delete all relevant data produced by the plugin in order to free up space

@MustThinkOfAName
Copy link

MustThinkOfAName commented Feb 3, 2024

You can go to config/metadata/library/ here you should have many folders that look like 1b da c2 bf .... Once there search for every *.bif files and delete them.

As for disk space, to give you an idea of what to expect and wherever it is worth it, I currently have in my library 15 000 bif files related to about 25to of data. All these bif files currently weight around 30go (so, 0.1%). You might not free up that much space by deleting them.

@maru801
Copy link

maru801 commented Feb 25, 2024

If you're on a Linux machine, you can use the following list of commands on the system shell/CLI:
find <insert-directory-path-here> -type f \( -iname "*.bif" -o -iname "*-manifest.json" \) | sed 's/\(.*\)/"\1"/g' | xargs rm -v

  • You can check the man pages of each command to see what each thing does. Each command's output will be piped ("|") to the next command.
  • This will search for all ".bif" and "-manifest.json" files in a given directory and it's sub-directories, then delete them. These two file types are what Jellyscrub creates for the trickplay files.
  • Add the path to the directory you want to search through for the find command. Make sure to not included the "<>" symbols.
  • The sed command will enclose the found file paths with "" marks so that the remove command can read file paths with spaces/special characters".
  • xargs will call and run rm on the passed list of file paths found to delete them. The "-v" flag is used to print out to the screen what files are currently being removed. Remove the -v flag if you don't want any output on what is being deleted.
  • If you want to make sure all the files that will be deleted are ones you're fine with removing, run the command without the final xargs command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants