Advertisement
neongm

Untitled

Apr 27th, 2021
990
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function axiosDelete() {
  2.     axios.get("https://lib.poas45.ru/books").then((response) => {
  3.         console.log(response);
  4.         console.log(response.data.length);
  5.         for (index = 3; index < response.data.length; index++) {
  6.             axios.delete(`https://lib.poas45.ru/books/${index}`).then((response) => {
  7.             console.log(response);
  8.             });
  9.         }
  10.     });
  11. }
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement