Deleting a Media record/model doesn't delete the associated files #2893
Unanswered
DanielvdSpoel
asked this question in
Q&A
Replies: 1 comment
-
This test proves that it is working as intended: Feel free to submit a failing tests for us to look at. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We use the following code:
$data = Media::Find($media); //$media is the id of the media we wish to delete $data->delete();
I expect this to also remove all the files, so we don't end up with all sorts of files that are deleted. But they are still there? How can we fix this? I also can't find anything in the docs about deleting media
Beta Was this translation helpful? Give feedback.
All reactions