docs: def remove_file_data(file_id, silent=True):
      """Remove file instance and associated data.
  
      :param file_id: The :class:`invenio_files_rest.models.FileInstance` ID.
      :param silent: It stops propagation of a possible arised IntegrityError
          exception. (Default: ``True``)
      :raises sqlalchemy.exc.IntegrityError: Raised if the database removal goes
          wrong and silent is set to ``False``.
      """
      try:
          # First remove FileInstance from database and commit transaction to
          # ensure integrity constraints are checked and enforced.
          f = FileInstance.get(file_id)
          if not f.writable:
              return
          f.delete()
          db.session.commit()
          # Next, remove the file on disk. This leaves the possibility of having
          # a file on disk dangling in case the database removal works, and the
          # disk file removal doesn't work.
          f.storage().delete()
      except IntegrityError:
          if not silent:
              raise