GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — can not connect google @ google-cloud / storage to the project. · Issue #385 · GoogleCloudPlatform/nodejs-docs-samples

can not connect google @ google-cloud / storage to the project. #385

New issue
Copy link
New issue
Copy link
Closed
Closed
can not connect google @ google-cloud / storage to the project.#385
Copy link
Labels
🚨This issue needs some love.triage meI really want to be triaged.

Description

@alexanderkhitev
alexanderkhitev
opened on May 10, 2017
Issue body actions

Hello! I tried to connect google cloud storage to the project as follows.

MacBook-Pro:node_modules alexsanderjob$ npm install --save @google-cloud/storage
npm WARN deprecated [email protected]: Use uuid module instead
functions@ /Users/alexsanderjob/Desktop/ExampleCloudFunctions/functions
└── @google-cloud/[email protected] 

I wrote the following code in index.js

// Imports the Google Cloud client library
const Storage = require('@google-cloud/storage');

// Your Google Cloud Platform project ID
const projectId = 'example-example7';

// Instantiates a client
const storageClient = Storage({
  projectId: projectId
});

When I open this file through the Visual Studio Code, and when I try to interact with the storage client, nothing happens. My case is the following, I need to delete photos of user cards from Firebase Storage when it deleted my account. Please tell me how it can be done?

Activity

  1. jmdobry commented on May 10, 2017

    @jmdobry
    jmdobry
    on May 10, 2017
    Member
    More actions

    Delete a single file in a bucket

    Delete all files in a bucket:

    const Storage = require('@google-cloud/storage');
    
    // Instantiates a client
    const storageClient = Storage({ projectId: 'example-example7' });
    
    // References an existing bucket, e.g. "my-bucket"
    const bucket = storageClient.bucket('my-bucket');
    
    // Deletes all files in the bucket
    bucket.deleteFiles()
      .then(() => {
        console.log('All files deleted.');
      })
      .catch((err) => {
        console.error('ERROR:', err);
      });

    Delete a bucket

    Reacted by Alexander Khitev and lucasbeef
    Reacted by Lucas Rangel
  2. jmdobry
    closed this as completedon Aug 21, 2017
  3. ace-n commented on Aug 21, 2017

    @ace-n
    ace-n
    on Aug 21, 2017
    Contributor
    More actions

    Closing due to staleness; @alexsanderkhitev feel free to reopen if you're still having trouble. Thanks!

  4. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 6, 2020
  5. ahrarmonsur
    added a commit that references this issue on Nov 8, 2022

    test: add sample test debugging (#385)

    9973553
  6. ace-n
    added a commit that references this issue on Nov 10, 2022

    test: add sample test debugging (#385)

    da4c3b5
  7. ace-n
    added 5 commits that reference this issue on Nov 17, 2022

    chore: address linting issues (#385)

    89b7e27

    chore: address linting issues (#385)

    38ac01f

    chore: address linting issues (#385)

    846c59c

    chore: address linting issues (#385)

    90e49d3

    chore: address linting issues (#385)

    6f0b231
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚨This issue needs some love.triage meI really want to be triaged.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.