def delete_obj(self, token: str, filename: str):
        """
        Call HF API to delete a file stored by user
        """
        path = "{}/api/deleteObj".format(self.endpoint)
        r = requests.delete(path, headers={"authorization": "Bearer {}".format(token)}, json={"filename": filename})
        r.raise_for_status()

        Call HF API to delete a file stored by user
        
xtune/src/transformers/hf_api.py