It is quite simple! You just need to open TikTok, click on your Profile, click the three-line button in the top-right corner, and click on Settings & Privacy. Then scroll down and click on Free up space > Clear Cache.
It will be best if you first clear your cache rather than uninstalling and reinstalling the application. You can do this by going to Settings & privacy > Free up space, then choose Clear cache. Take care not to clear any other data.
I do this on a weekly basis whenever TikTok gets sluggish. It clears out the cache and hence creates some room, but just be sure that it does not delete your videos and other things you've created.
One thing worth mentioning: clearing TikTok's cache might help with glitches or slow loading, but it doesn't guarantee a speed boost. If the app is still sluggish afterwards, try updating TikTok or restarting your phone.