Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

379
Views
how to delete multiple folders using google drive api in javascript with axios?

I am trying to delete multiple files of google drive using google drive api but it give 404 error

axios.delete('https://www.googleapis.com/drive/v3/files',{
         params:{
             fileId:'1nJddic7Gc_x8NQBzwOPhglwfYI-_Ms5E,1nJddic7Gc_x8NQBzwOPhglwfYI-_Ms5E',
              supportsTeamDrives: 'false',
         },
         headers: {
            authorization: `Bearer ${accessToken}`
            }
        })
        .then(res=>{    console.log(res.data)   })
        .catch(err=>{    console.log(err)   })
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You have to pass the fileId as path parameter:

axios.delete('https://www.googleapis.com/drive/v3/files/1nJddic7Gc_x8NQBzwOPhglwfYI-_Ms5E,1nJddic7Gc_x8NQBzwOPhglwfYI-_Ms5E', {
  headers: {
    authorization: `Bearer ${accessToken}`
  }
})
.then(res => { console.log(res.data); })
.catch(err => { console.log(err); });
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!