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

  • Home
  • SEARCH
  • 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 6938039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:26:27+00:00 2026-05-27T12:26:27+00:00

I realize my entire blob information, is not being deleted properly, if I try

  • 0

I realize my entire blob information, is not being deleted properly, if I try to delete it through BlobInfo. (I want to perform blob overwrite) My code is as follow :

from google.appengine.ext import db
from google.appengine.ext import blobstore

class Human(db.Model):
    email = db.StringProperty(required=True)
    date = db.DateTimeProperty(auto_now=True)
    checksum = db.IntegerProperty(required=True)
    version = db.IntegerProperty(required=True)
    content = blobstore.BlobReferenceProperty(required=True)

def upload(email, checksum, version, content):
    # Create the file
    file_name = files.blobstore.create(mime_type='application/octet-stream', _blobinfo_uploaded_filename=email)

    # Open the file and write to it
    with files.open(file_name, 'a') as f:
        f.write(content)

    # Finalize the file. Do this before attempting to read it.
    files.finalize(file_name)

    # Get the file's blob key
    blob_key = files.blobstore.get_blob_key(file_name)

    human = model.Human(key_name=email, email=email, checksum=checksum, version=version, content=blob_key)

    # Remove previous blob referenced by this human.
    query = model.Human.all()
    query.filter('email =', email)
    # q.content is blobstore.BlobReferenceProperty(required=True)
    for q in query:
        q.content.delete()

    human.put()

However, after I had write the blob several time, based on same human, here is how my database looks like. I had uploaded for 3 times. I am only expecting to observe only one row. However, I realize there are 3 rows in __BlobFileIndex__. Human and __BlobInfo__ just look fine.

enter image description here
enter image description here
enter image description here

How can I perform proper delete based on BlobInfo?

  • 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-27T12:26:28+00:00Added an answer on May 27, 2026 at 12:26 pm

    You cannot perform a blob overwrite. Once finalized, a blob is immutable until deleted.

    Test that to convince yourself.

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

Sidebar

Related Questions

I realize that virtual template functions are not allowed in c++. Because of my
I realize I'm going to get flamed for not simply writing a test myself...
I want to move an entire catalog from one magento store to another store
I realize that in general, you should not store user credentials directly (i.e., in
I want to be able to quickly wrap entire sections of my HTML with
I realize this is a very specific question, and not very helpful outside of
I realize CloudFoundry is still in beta and I'll admit to being moderately ignorant
I parsed through an Excel spreadsheet and returned the entire result as a DataTable.
I realize that tinyint is a single byte integer (by the way, is it
I realize this is syntactically bad but I figure it somewhat explains what I'm

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.