I have a script that creates files with some data in it. The contents are seperated by div with classes such as :
<div class="2017-02-01-20-35-company1">
//content
</div>
<div class="2017-02-01-20-35-company2">
//content
</div>
However, I want to be able to edit/delete
each div
from the created file, not just create the file or delete it entirely.
I can retrieve the name of the file and the name of div.
But is it possible to delete the div I want to delete as well as its content ?
thanks.