Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:local:remoteapi1504:apiref:messages:delete_message [20/05/2014 11:49] (current)
Line 1: Line 1:
 +====== Delete message ======
  
 +To delete a message, use the command **messages/​delete_message**: ​
 +<code javascript>​
 +svc=messages/​delete_message&​params={"​msgIndex":<​uint>​}
 +</​code>​
 +
 +:!: You can find an example of this request in the sample [[../​../​codesamples/​messages]].
 +
 +===== Parameters =====
 +^ Name ^ Description ^
 +| msgIndex | message index |
 +
 +===== Response =====
 +<​code=javascript>​
 +{} /* empty object if execution successful, if not - error code */
 +</​code>​
 +
 +===== Errors =====
 +^ Code ^ Description ^
 +| 4 | There is no such message or this message is the last one and thus can't be deleted |
 +| 6 | Error deleting message |
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2020 Gurtam