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

176
Views
axios delete object from nested array

im using axios to fetch data form an api. and to make delete request.

here is what the array looks like: array

i can get this array by using

const { data } = await axios.get('http://ipadress:5000/api/categories/61cae5daf5bfbebd7cf748ee')

and delete it using:

await axios.delete(`/api/categories/${61cae5daf5bfbebd7cf748ee}`)

my qeustion is how can i delete one object from the array. for example the 'Jewelry' object.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You need to get a different API to delete the item from the nested array something like this;

await axios.delete(`/api/categories/subcategory/${61......fo}/`)
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!