Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

deleting a view using C API

1 reply [Last post]
  • Login or register to post comments
Fri, 02/08/2013 - 10:30
JuanZa
Offline
Joined: 01/17/2013
Groups: None

Hi,

I am trying to delete a view using the function lcb_make_http_request.

This is what I am doing

lcb_http_request_t req;
lcb_http_cmd_t cmd;
cmd.version = 0;
cmd.v.v0.path = lPath.c_str();
cmd.v.v0.npath = lPath.size();
cmd.v.v0.body = NULL;
cmd.v.v0.nbody = 0;
cmd.v.v0.method = LCB_HTTP_METHOD_DELETE;
cmd.v.v0.chunked = false;
cmd.v.v0.content_type = "application/json";
lcb_error_t err = lcb_make_http_request(lInstance, NULL,
LCB_HTTP_TYPE_VIEW, &cmd, &req);

But is not working, am I missing something?

Thanks

Top
  • Login or register to post comments
Sun, 02/10/2013 - 14:28
trond
trond's picture
Offline
Joined: 03/15/2010
Groups: None

What is the error your seeing?

Trond

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker