Does bad histories like chat history or video history in youtube has to be delete.d?.
I mean example is like i ever have online chats that contain sin or even kufr, and of course the chat history is still there that i can look at it again.
Or maybe i ever watch sinful video on youtube, and the history is there that i ever watched it.
All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
First of all, you are obliged to hasten to repent to Allah Almighty from browsing these videos and carrying these conversations that contain evil and forbidden matters.
The conditions of a valid repentance is to stop the sin, to be determined not to do it again, and to regret having done it.
Whoever has done so, should perform good deeds and acts of obedience as much as possible because good deeds wipe out bad ones.
If keeping such links or videos may tempt you to return to them, then you must delete them and get rid of them. Perhaps by doing so, you would strengthen your determination and help you achieve the objective of never going back to them again.
The Muslim should always be mindful that Allah is watching him when he is alone with these devices, and he should preserve the bounty of sight from using it in what Allah has forbidden, lest he risks losing it.
Allah Knows best.
You can search for fatwa through many choices