public BaasResult < Void > deleteSync ( ) { if ( id == null ) throw new IllegalStateException ( "this document is not bound to any remote entity" ) ; BaasBox box = BaasBox . getDefaultChecked ( ) ; Delete delete = new Delete ( box , this , RequestOptions . DEFAULT , null ) ; return box . submitSync ( delete ) ; }
Syncrhonously deletes this document on the server .