-
-
Save reusee/6134dbca5ac6458ac549a7071e90e743 to your computer and use it in GitHub Desktop.
batch delete zhihu answers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch('/api/v4/members/aaaaaaa/answers').then(resp => { return resp.json() }).then(j => { for (const row of j.data) { fetch('/api/v4/answers/' + row.id, { method: 'DELETE', credentials: 'same-origin' } ).then(resp => { console.log(resp) }) } }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment