Caching problem when deleting a dataset 
COLLABORATOR
Thanks for reporting! Can you also share the error message printed in step 5?
2023-11-02T18:40:07Z
https://github.com/huggingface/datasets/issues/6376#issuecomment-1791325716
https://api.github.com/repos/huggingface/datasets/issues/6376
IC_kwDODunzps5qxXYU
https://api.github.com/repos/huggingface/datasets/issues/comments/1791325716/reactions
2023-11-02T18:40:07Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1791325716
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
MEMBER
I did not store it at the time but I'll try to re-do a mwe next week to get it again
2023-11-03T07:38:13Z
https://github.com/huggingface/datasets/issues/6376#issuecomment-1791992281
https://api.github.com/repos/huggingface/datasets/issues/6376
IC_kwDODunzps5qz6HZ
https://api.github.com/repos/huggingface/datasets/issues/comments/1791992281/reactions
2023-11-03T07:38:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1791992281
https://avatars.githubusercontent.com/u/22726840?v=4
https://api.github.com/users/clefourrier/events{/privacy}
https://api.github.com/users/clefourrier/followers
https://api.github.com/users/clefourrier/following{/other_user}
https://api.github.com/users/clefourrier/gists{/gist_id}
https://github.com/clefourrier
clefourrier
MDQ6VXNlcjIyNzI2ODQw
https://api.github.com/users/clefourrier/orgs
https://api.github.com/users/clefourrier/received_events
https://api.github.com/users/clefourrier/repos
https://api.github.com/users/clefourrier/starred{/owner}{/repo}
https://api.github.com/users/clefourrier/subscriptions
User
https://api.github.com/users/clefourrier
public
COLLABORATOR
I haven't managed to reproduce this issue using a [notebook](https://colab.research.google.com/drive/1m6eduYun7pFTkigrCJAFgw0BghlbvXIL?usp=sharing) that follows the steps to reproduce the bug. So, I'm closing it.

But feel free to re-open it if you have a better reproducer.
2023-12-04T16:53:34Z
https://github.com/huggingface/datasets/issues/6376#issuecomment-1839065995
https://api.github.com/repos/huggingface/datasets/issues/6376
IC_kwDODunzps5tneuL
https://api.github.com/repos/huggingface/datasets/issues/comments/1839065995/reactions
2023-12-04T16:53:34Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1839065995
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
### Describe the bug

Pushing a dataset with n + m features to a repo which was deleted, but contained n features, will fail.

### Steps to reproduce the bug

1. Create a dataset with n features per row
2. `dataset.push_to_hub(YOUR_PATH, SPLIT, token=TOKEN)`
3. Go on the hub, delete the repo at `YOUR_PATH`
4. Update your local dataset to have n + m features per row
5. `dataset.push_to_hub(YOUR_PATH, SPLIT, token=TOKEN)` will fail because of a mismatch in features number


### Expected behavior

Step 5 should work or display a message to indicate the cache has not been cleared

### Environment info

- `datasets` version: 2.12.0
- Platform: Linux-5.15.0-88-generic-x86_64-with-glibc2.31
- Python version: 3.10.10
- Huggingface_hub version: 0.16.4
- PyArrow version: 11.0.0
- Pandas version: 2.0.0
