Want to remove the variable from the array in the loop

I have this scenario

.exec(http("get the print package to unlink")
  .get("/content/ffx/print-authoring/en/newsholes/FNZ/DPT/2016/05/30.cards.html")
  // .headers(headers_0)
  // .check(jsonPath("$..name[?(@.editorialComplete==false)]").find.saveAs("page")))
  .check(jsonPath("$..shapes[?(@.state=='UNUSED'&& @.assetId==null)].contentPath").findAll.saveAs("plist")))
.exec { session =>
  val plist = session.get("plist").asOption[String]
  println("EMNGMJGHk  " + plist.getOrElse("NOT AVAILABLE"))
  println(session)
  session
}
   .foreach("${plist}","newshole") {
     exec(session => {
       val newshole = session("newshole").asOption[String]
       session.set("contentPath", newshole)
       println(newshole)
       session
     })

Now i want to POST on each value of 'newshole' and then remove the one i send POST request on from the list and run the loop again for the remaining values.

please i need help ASAP !!! it is very urgent

If you really need urgent help, you can consider subscribing to our support offer.

it is all good if you cannot post the solution at the moment, as the support cost is too much for an individual like me :slight_smile: