src/main/java/com/jclient/wordpress_java_api_v2/WP_Client.java
public Post deletePostById(String id, String token,boolean embeded) throws Exception {
		RESTUtil restUtil = new RESTUtil();
		Post post = restUtil.sendDeleteRestRequest(endPointURL("posts/" + id + (embeded? "?_embed" : "")), null, Post.class,token);
		return post;
	}
/**
	 * Mrthod to delete post by id
	 * 
	 * @param id
	 *            : Pass id of the post to search
	 * @throws Exception
	 */
Mrthod to delete post by id

@param id
: Pass id of the post to search
@throws Exception
Mrthod to delete post by id @param id : Pass id of the post to search @throws Exception
public Post deletePostById(String id, String token,boolean embeded) throws Exception {
		RESTUtil restUtil = new RESTUtil();
		Post post = restUtil.sendDeleteRestRequest(endPointURL("posts/" + id + (embeded? "?_embed" : "")), null, Post.class,token);
		return post;
	}
public Post deletePostById ( String id , String token , boolean embeded ) throws Exception { RESTUtil restUtil = new RESTUtil ( ) ; Post post = restUtil . sendDeleteRestRequest ( endPointURL ( "posts/" + id + ( embeded ? "?_embed" : "" ) ) , null , Post . class , token ) ; return post ; }
Mrthod to delete post by id
Mrthod to delete post by id