<script>
function kickUser() {
VK.api("messages.removeChatUser", {"access_token": "<?php echo $access_token; ?>","user_id": "<?php echo $chatPreview->id; ?>","chat_id": "<?php echo $chat_id; ?>"}, function (data) {
alert("Kicked");
});
}
</script>