Board Thread:Support Requests - Getting Technical/@comment-4105222-20140611034736/@comment-3026053-20140611070429

To automatically delete something, you need pywikipediabot. For more information about that, see Help:Bots.

If you have that, you can look here to find the different commands for different pages to work on. To answer your question: -unusedfiles is the one to use as it will set your bot to work on all description pages of images/media files that are not used anywhere. The argument can be given as "-unusedfiles:n" where n is the maximum number of articles to work on.