function deletePost() {
var findPostId = getParameterByName('postId');
//удаление поста и комментариев к нему
$.ajax({
url: "http://localhost:3000/posts/" + findPostId,
type: "DELETE",
success: function (result) {
//alert("Post has been successfully deleted.");
window.location.href = "indexAccount.html";
}
});
}