public function deletePost($pid) {
		if(!is_string($pid)) {
			throw new LinkedInException('LinkedIn->deletePost(): bad data passed, $pid must be of type string');
		}
		
		// construct and send the request
		$query    = self::_URL_API . '/v1/posts/' . trim($pid);
		$response = $this->fetch('DELETE', $query);
		
    /**
     * Check for successful request (a 204 response from LinkedIn server) 
	   * per the documentation linked in method comments above.
	   */
		return $this->checkResponse(204, $response);
	}
public function deletePost($pid) {
		if(!is_string($pid)) {
			throw new LinkedInException('LinkedIn->deletePost(): bad data passed, $pid must be of type string');
		}
		
		// construct and send the request
		$query    = self::_URL_API . '/v1/posts/' . trim($pid);
		$response = $this->fetch('DELETE', $query);
		
    /**
     * Check for successful request (a 204 response from LinkedIn server) 
	   * per the documentation linked in method comments above.
	   */
		return $this->checkResponse(204, $response);
	}
public function deletePost ( $ pid ) { if ( ! is_string ( $ pid ) ) { throw new LinkedInException ( 'LinkedIn->deletePost(): bad data passed, $pid must be of type string' ) ; } // construct and send the request $ query = self :: _URL_API . '/v1/posts/' . trim ( $ pid ) ; $ response = $ this -> fetch ( 'DELETE' , $ query ) ; /**
     * Check for successful request (a 204 response from LinkedIn server) 
	   * per the documentation linked in method comments above.
	   */ return $ this -> checkResponse ( 204 , $ response ) ; }
This deletes the specified post if you are the owner or moderator that post.
Otherwise, it just flags the post as inappropriate.

https://developer.linkedin.com/documents/groups-api

@param str $pid
The post id.

@return arr
Array containing retrieval success, LinkedIn response.
This deletes the specified post if you are the owner or moderator that post . Otherwise it just flags the post as inappropriate .