<?php
    // delete user chat file, ip.json

    $ip = htmlentities(strip_tags($_POST['ip']));

    $file = '../ChatRoom/userChats/'.$ip.'.json';

    if (!unlink($file)) {
        echo 0;
    }
    else {
        echo 1;
    }

?>