#https://github.com/chomupashchuk/delete-file-home-assistant/tree/master

1 messages · Page 1 of 1 (latest)

hexed atlas
#

i try to delete my Ring videos with this service but i dont get i to run..
I created the custom_components folder in my /config folder and in the custom_components folder i pasted the delete folder with the files..

than i added
service: delete.files_in_folder
data:
folder: '/config/www/video'
time: 604800
scan_subfolders: true
remove_subfolders: true
to my configuration.yaml

did i miss anything ?

serene hearth
#

you add
delete:
to your configuration file.
this causes home assistant to load the custom delete integration
you then call the services from within home assistant.

although services are now called actions.

it should also be pointed out that that project has not been updated in 3 years so things may not necessarily work the way you expect

#

you could probably also just delete files using a shell_command and just rm them.

Home Assistant

Instructions on how to integrate Shell commands into Home Assistant.