{"action":"closed","issue":{"url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/397","repository_url":"https://api.github.com/repos/spatie/laravel-medialibrary","labels_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/397/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/397/comments","events_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/397/events","html_url":"https://github.com/spatie/laravel-medialibrary/issues/397","id":188978087,"number":397,"title":"clearMediaCollection rmdir(): Directory not empty","user":{"login":"kickthemooon","id":7913974,"avatar_url":"https://avatars.githubusercontent.com/u/7913974?v=3","gravatar_id":"","url":"https://api.github.com/users/kickthemooon","html_url":"https://github.com/kickthemooon","followers_url":"https://api.github.com/users/kickthemooon/followers","following_url":"https://api.github.com/users/kickthemooon/following{/other_user}","gists_url":"https://api.github.com/users/kickthemooon/gists{/gist_id}","starred_url":"https://api.github.com/users/kickthemooon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kickthemooon/subscriptions","organizations_url":"https://api.github.com/users/kickthemooon/orgs","repos_url":"https://api.github.com/users/kickthemooon/repos","events_url":"https://api.github.com/users/kickthemooon/events{/privacy}","received_events_url":"https://api.github.com/users/kickthemooon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-13T16:07:37Z","updated_at":"2016-11-13T16:40:09Z","closed_at":"2016-11-13T16:40:09Z","body":"so I am trying to clear a media collection:\r\n```\r\n$settings->clearMediaCollection('main_header_logo');\r\n```\r\nbut it thorws me this error:\r\n\r\n```\r\nrmdir(mypath\\media\\2016\\11\\13\\92): Directory not empty\r\n```\r\nI am using a custom path generator not sure if it has something to do with not being able to clear a media collection"}}
{"actor":{"display_login":"kickthemooon"}}