#✅ Delete file when deleting item?

6 messages · Page 1 of 1 (latest)

rancid vault
#

I have a "Photo_albums" collection in wich I can create albums and add photos. classic.

Is there a way to automatically delete the image file whenever a user deletes the album? Or when they deselect an image inside the album?

I built this photo galery for a client that, I'm afraid, won't take the time to clean up the file library.

Also: Isinde the file library, is there a way to know if a certain file has a relation to an existing item, and what is that item? That way it would be easier to delete useless files...

thanks!

eric

grand stagBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please make sure your question includes the following:

  • An explanation of exactly what you're trying to achieve.
  • Any and all related code or previous attempts.
  • The exact issue or error you are facing.
  • Any screenshots if applicable.

When you're done with this thread, please close it.

(If you have a support agreement and need help, please contact the core team via email.)

carmine forge
#

Feels like a good use case for Flows

rancid vault
carmine forge
grand stagBOT
#

✅ Delete file when deleting item?