What happens when I delete an item from directus_files from a Flow?

I was under the impression that deleting the item, also deletes the file from the space storage.

But from what I’m reading, you’d need to use the data studio or the api to delete the file from the space storage and that using a Flow to delete an item from directus_files, doesn’t actually delete the file from storage.

You are correct, simply removing a record from the directus_files table does not actually remove the file from storage unless done through the DELETE /files/{id} API endpoint (which the App also uses) or its graphql counterpart.
That indeed means that Flows cannot perform this action without either calling the API or using a Custom Operation to delete the file through the FilesService :grimacing:

Sounds like someone needs to build a custom operation then! Shouldn’t be too difficult.