Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plugin] CA Cleanup Appdata

Featured Replies

3 hours ago, gxs said:

There are no errors. It's working fine.

 

The text could be somewhat smaller but I guess that it's for people that ignore the big yellow sign up top. Although come to think of it if they ignore the yellow sign even a big allcaps words won't discourage them. :)

We know the reader, not just you. Only it is unclear what it is that helps to state that the author does not take responsibility

  • 1 year later...
  • Replies 89
  • Views 47.9k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I've un-deprecated the plugin because it does have use and I still regularly use it for convenience.  There is now a huge warning though on the main page that if you screw up and delete an entire shar

  • ok, i was the stupid one, but this plug-in really ****** me over tonight. listed few old dockers which i didn't use for a while   binhex-sonarr  etc   but it was pointing

  • I got tired of being blamed everytime someone massively misconfigured a container, then checked off their share, confirmed the request, and watched their media go bye-bye.  If you've never done that,

Posted Images

I'm not able to delete this path:

1539674612_2021-01-1421_27_53.png.118588655c4551ff2e1d3dc2ef17d541.png

 

It reloads the page as it was successful, but the entry stays. As nothing is in the logs, which command is used, so I could test it through the Terminal?

  • Author
5 minutes ago, mgutt said:

which command is used

rm -rf

 

6 minutes ago, Squid said:


rm -rf

 

 

Ok, I think I found the problem. I don't know why, but it seems I used in the past as container path a sub-folder inside of my plex docker container. Luckily it did not delete anything ^^

 

After deleting "UpdateTool" in Apps > Previous Apps, the entry disappeared.

 

What do you think about using the -v flag and put the results into the system logs?

  • Author

Yeah, it would've offered it up because the paths on the two containers weren't identical, but one was still in use so it couldn't actually delete it.

  • 7 months later...

I recently cleared my appdata folder from docker folders I no longer needed and after I noticed than all my dockers had their templates removed. Docker icons weren't loading and I couldn't edit any of them. Lucky I had just made a backup of my flashdrive. Is this plugging suppose to clear unraid usb/config/plugins/dockerMan/templates-user/ folder completely? As far as I know it didn't do this before.

Running unraid 6.9.2 and plugin version is 2021.03.10.

Edited by Nevis

  • Author

The plugin does not delete any templates

Sorry, you are indeed correct. Tested it and I can't reproduce it. I just can't think of any other reason than it could happen. I have someone managed to clear my templates-user folder twice now. Both times it happened when I removed some dockers that I didn't need and cleaned appdata from unnecessary folders using this plugin. Both times I noticed it after running the pluggin but something else must have done it right before. But no idea what since nothing I did should effect the template folder. Oh well this is wrong thread to start troubleshooting that anyway.

  • Author

Without you actually going into the flash share and deleting them yourself, there's only 2 ways via the WebGUI to delete the templates

 

  • Via CA, previous Apps and clicking the "X" on the card or selecting a bunch of templates and then clicking the "X" on the top right.  Both times a popup asks are you sure.
  • Via Add Container screen, selecting the template from the drop down and then clicking the "X" next to it after selecting.  No clue if that brings up a confirmation or not, as I never use Add Container.
  • 2 months later...

Hi

strange thing in my setup, didn't find the answer by searching

The plugin used to work, but now (don't know since when - maybe 6.10RC2?)

it doesn't show anything after uninstalling a docker

always get "No orphaned appdata folders found" and have to manually delete the folder from appdata

any idea?

 

Thanks

  • Author

Yeah, I see the same thing.  Thanks for reporting

  • 2 weeks later...
  • Author
On 11/18/2021 at 2:41 PM, Omri said:

always get "No orphaned appdata folders found" and have to manually delete the folder from appdata

 

Updated for 6.10

 

As usual, VERIFY EVERY PATH IT OFFERS UP

  • 2 weeks later...

I get a Warning ...

grafik.thumb.png.a5abcff90d32c710eaff656a5907a829.png

  • Author

Either your flash drive has corruption on it or you've been using Unraid since <6.2 and had a container installed and never edited since then.

 

Either way, an update is now issued to silence this error

On 11/18/2021 at 7:41 PM, Omri said:

always get "No orphaned appdata folders found" and have to manually delete the folder from appdata

any idea?

Seeing the same on 6.9.2 (Stable)

  • Author

It works by looking at your Previously Installed Containers.  Not guaranteed to find everything due to the multitude of combinations, and if you've cleaned up the Previous Apps section then it won't even look at those templates

  • 6 months later...

Is it possible to check if offered directories are always used by currently running templates? I have some path used by removed dockers that are always used by others dockers and so they don't need to be deleted

I checked for more details, I seems not working when path is a sub path of an always used path. I.e: /mnt/user/appdata/swag is used by swag, but the plugin offers me to delete /mnt/user/appdata/swag/log/nginx/ that was used by goaccess (that I deleted because it's now integrated as swag dashboard)

Edit : when I say "used" it's that the path is in the template and so subpath is not referenced in the template, but it's used 

Edited by dada051

  • 1 month later...

I was testing an app that reads logs from another app. I uninstalled it, but it thinks the logs from the other app are leftover files in the Cleanup Appdata plugin. How can I tell it they're not so it doesn't permanently stay in that list?

  • 1 month later...
On 6/28/2022 at 4:17 AM, dada051 said:

I checked for more details, I seems not working when path is a sub path of an always used path. I.e: /mnt/user/appdata/swag is used by swag, but the plugin offers me to delete /mnt/user/appdata/swag/log/nginx/ that was used by goaccess (that I deleted because it's now integrated as swag dashboard)

Edit : when I say "used" it's that the path is in the template and so subpath is not referenced in the template, but it's used 

 

Sorry for the late addition but I wanted to address a post ^ that had an issue exactly like mine. I came looking for a solution but then had an epiphany.. what I did to fix that was "reinstall goaccess from previous apps" and point Host Path 2 somewhere else like /opt/log and then apply, remove docker and image, then it disappeared from my orphaned appdata. Profit!

Edited by Mr. Notepad

  • 10 months later...

How can i delete wrong entries in the list of folders? The plugin shows folders of fail2ban which are releated to another docker and not fail2ban for example.

  • 4 months later...

So I installed a docker that had a overlapping directory.  I removed the docker that overlapped but still have a listing in Appdata cleanup that I cant remove.  Any idea? The directory is /mnt/user/appdata/data 

 

Solved:  I removed the docker from Previous apps and it did the trick.

Edited by Gragorg

  • 5 months later...

>> Solved:  I removed the docker from Previous apps and it did the trick.

Thank you VERY much for posting this. I did the normal first time user mistake of installing a different docker and using the same path so of course this deleted my whole Sonarr setup and configuration ( user error ). After a full reinstall / reconfigure Sonarr, this "cleanup" app still wanted to delete it again.

Didnt feel like doing that again so stumbled across your post and worked like a charm. 

  • 2 months later...

Any way to ignore the items I know are not supposed to be deleted.

Posting some screenshots for reference.

 

on the plugin page - 

image.png.282c95e043ab183e1c6299d9bbe9c293.png

 

 

On Docker page - mappings

 

image.png.a6bd394e41b975732246367bd2d44301.png

 

Thanks in advance.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.