<?
$HOME = $_SERVER['DOCUMENT_ROOT'];
include $HOME . '/core/in/j.php';
$id = (int)$_POST['id'];
if ( !$id ) {
exit;
}
$find = $_not -> findOne(
[
'id' => $id,
'user_id' => $user['id']
]
);
if ( $find ) {
$_not -> remove(
[
'id' => $id,
'user_id' => $user['id']
]
);
}
print '1';