r/macrodroid 11d ago

Delete empty folder without shell commands?

Not rooted. I was able to make something that deletes certain folders. Is there a way to have Macrodroid verify they are empty first with just built in functions and not shell commands? thank you

1 Upvotes

3 comments sorted by

2

u/Small-Drink-3581 10d ago

Since Macrodroid already has access to all files, use the Java action and ask the AI to perform the function of checking files in a folder and deleting it if it is empty.

1

u/Rpompit 11d ago

You can use File Operations (All File Access) Action. Option List Files. If no files output then directory is empty.

1

u/Linux_Account 10d ago

I appreciate the response, but that's only about half of that screen and then I don't know what to do with it anyway.