title: Delete file when deleting sys_file_reference
body: <p>I am writing an extension which allows to upload files in the frontend and backend of a TYPO3 instance. The upload works in both views but if the admin wants to delete an upload in the backend in list view, the "physical" file, which is located on the harddisk of the webserver, will not be deleted, only the sys_file_reference record.</p>
  
  <p>Is there a possibility to tell the tca that in case of a deletion of the upload record the associated file should also be deleted? I've also tried to implement a slot with the following code but nothing happens:</p>
  
  <p>ext_localconf.php:</p>
  
  <pre><code>\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')-&gt;connect(
      'TYPO3\CMS\Extbase\Persistence\Generic\Backend',
      'afterRemoveObject',
      'Kmi\feupload\Slots\MyAfterRemoveObjectSlot',
      'myAfterRemoveObjectMethod'
  );
  </code></pre>
  
  <p>Classes/Slots/MyAfterRemoveObjectSlot.php:</p>
  
  <pre><code>namespace Kmi\feupload\Slots;
  class MyAfterRemoveObjectSlot {
      public function myAfterRemoveObjectMethod($object) {
      // do something
      \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($object);
      }
  }
  </code></pre>
  
  <p>Has anyone an idea how to solve this? There will be many uploads and if the admin deletes one, the associated file should also be deleted...</p>
  
  <p>Thank you in advance for your help :)</p>