def deleteResourceFile(self, pid, filename):
url = "<STR_LIT>".format(url_base=self.url_base,<EOL>pid=pid,<EOL>filename=filename)<EOL>r = self._request('<STR_LIT>', url)<EOL>if r.status_code != <NUM_LIT:200>:<EOL><INDENT>if r.status_code == <NUM_LIT>:<EOL><INDENT>raise HydroShareNotAuthorized(('<STR_LIT>', url))<EOL><DEDENT>elif r.status_code == <NUM_LIT>:<EOL><INDENT>raise HydroShareNotFound((pid, filename))<EOL><DEDENT>else:<EOL><INDENT>raise HydroShareHTTPException((url, '<STR_LIT>', r.status_code))<EOL><DEDENT><DEDENT>response = r.json()<EOL>assert(response['<STR_LIT>'] == pid)<EOL>return response['<STR_LIT>']<EOL>
Delete a resource file

:param pid: The HydroShare ID of the resource
:param filename: String representing the name of the resource file to delete

:return: Dictionary containing 'resource_id' the ID of the resource from which the file was deleted, and
    'file_name' the filename of the file deleted.

:raises: HydroShareNotAuthorized if user is not authorized to perform action.
:raises: HydroShareNotFound if the resource or resource file was not found.
:raises: HydroShareHTTPException if an unexpected HTTP response code is encountered.