Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 774061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:04:07+00:00 2026-05-14T19:04:07+00:00

In CouchDb’s documentation, the described method of deleting document attachments is to send a

  • 0

In CouchDb’s documentation, the described method of deleting document attachments is to send a DELETE call to the attachment’s url.

However, I have noticed that if you edit the document and remove the attachment stub from the _attachment field, it will not be accessible anymore.

If i remove foo.txt from the document below and save to CouchDb it will be gone the next time I access the document:

{  
  "_id":"attachment_doc",  
  "_rev":1589456116,  
  "_attachments":  
  {  
    "foo.txt": 
    {  
        "stub":true,  
        "content_type":"text/plain",  
        "length":29  
    }  
  }  
}

Is the attachment actually deleted on disk or is just the reference to it deleted?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T19:04:08+00:00Added an answer on May 14, 2026 at 7:04 pm

    The two methods are identical.

    Whether you DELETE the attachment URL, or remove its stub from the document, the data is marked as deleted using the internal MVCC system. You might say the reference to it is deleted.

    However, when you run compaction, the attachment will be deleted on disk.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In CouchDB, to create a new document you send: PUT /albums/70b50bfa0a4b3aed1f8aff9e92dc16a0 Isn't PUT used
I am already excited about document databases and especially about CouchDB's simplicity. But I
Since CouchDB has very few API documentation (at least I can not find it),
I have a CouchDB (v0.10.0) database that is 8.2 GB in size and contains
I am working on a project that is going to use CouchDB for flexible
I was looking into the possibility of using CouchDB. I heard that it was
I've got ~15k rows in MSSQL 2005 that I want to migrate into CouchDB,
My CouchDB (production) server is sometimes shut down, without my wanting it to. While
Recently I've discovered CouchDB. I want to use CouchApp to build a flash games
I'm writing my couchdb views with python. I think it's not very ... pythonic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.