trigger Media Scan

trigger Media Scan:
- download
- delete local (on list and details)
- delete local & remote (on list and details)
When is this code necessary?