Skip to content

Instantly share code, notes, and snippets.

Avatar

Ondro Mihályi OndroMih

View GitHub Profile
@OndroMih
OndroMih / tiktok-delete-all-videos.js
Created May 16, 2021
Delete all videos in Tiktok
View tiktok-delete-all-videos.js
/*
* A script to delete all videos from a Tittok account
*
* Before running:
* 1. Log into your Tiktok account in a browser (tested with Firefox)
* 2. Navigate to the View Profile
* 3. Open the developer tools in the browser to inspect the URLs of the requests (Network tab in Firefox)
* 4. Click on one of the videos and delete it
* 5. In the developer tools, find the last POST request with a URL that starts with https://m.tiktok.com/api/aweme/delete
* 6. Copy the URL into the script below into the line that starts with 'const url'. Replace the value of aweme_id and target with: " + id + "