___  ___    _ _    _  _ _____   _____
 / __|/ _ \  | | |  | || |_ _\ \ / / __|
| (_ | (_) | |_  _| | __ || | \ V /| _|
 \___|\___/    |_|  |_||_|___| \_/ |___|

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

steemit에서 글 삭제 하는 법

BY: @chghl | CREATED: May 24, 2018, 1:25 a.m. | VOTES: 4 | PAYOUT: $0.13 | [ VOTE ]

steem-js의 deleteComment api를 다음과 같이 사용하면 글 삭제가 되는 것 같습니다.



steem.api.setOptions({ url: 'https://api.steemit.com' });
const wif = 'your private posting key';
const author = 'chghl';
const permlink = '3zyrqg';
steem.broadcast.deleteComment(wif, author, permlink, function(err, result) {
  console.log(err, result);
});

다만 제가 위 api를 이용해서 이 글을 삭제하려고 했으나 아래와 같은 에러가 발생하며 삭제가 되지 않네요..

Assert Exception:comment.net_rshares <= 0: Cannot delete a comment with net positive votes.

net_rshares는 글에 누군가 투표했을 때 +되는 값인데요, 지금 보니 한분이 이 글에 voting을 해 주셨네요.
잠깐사이에 테스트로 올린글에 voting을 해주시다니.. ^^;;

이것으로 누군가 투표한 글은 삭제할 수 없다는 사실을 알게되었습니다.
참고하세요~

TAGS: [ #test ] [ #steemit ] [ #steem ] [ #api ] [ #kr ]

Replies

@steemitboard | Dec. 15, 2018, 7:05 a.m. | Votes: 0 | [ VOTE ]

Congratulations @chghl! You received a personal award!

https://steemitimages.com/70x70/http://steemitboard.com/@chghl/birthday1.png1 Year on Steemit

Click here to view your Board of Honor

> Support SteemitBoard's project! Vote for its witness and get one more award!

@steemitboard | Dec. 15, 2019, 7:13 a.m. | Votes: 0 | [ VOTE ]

Congratulations @chghl! You received a personal award!

https://steemitimages.com/70x70/http://steemitboard.com/@chghl/birthday2.pngHappy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!
[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>