我知道我们只能通过参考ID删除记录。从现有共享点列表中删除所有内容的最佳方法是什么?
我是否需要将删除命令传递给多行,如下所示或其他任何简单的方法?
curl -X DELETE http://Server/sites/eTMFDev/_vti_bin/ListData.svc/Facilities(1)
curl -X DELETE http://Server/sites/eTMFDev/_vti_bin/ListData.svc/Facilities(2)
curl -X DELETE http://Server/sites/eTMFDev/_vti_bin/ListData.svc/Facilities(3)
curl -X DELETE http://Server/sites/eTMFDev/_vti_bin/ListData.svc/Facilities(4)
.
.
and so on
我正在寻找类似的东西
curl -X DELETE http://Server/sites/eTMFDev/_vti_bin/ListData.svcFacilities(1,2,3,4....n)
or
curl -X DELETE http://Server/sites/eTMFDev/_vti_bin/ListData.svcFacilities(*)
这是文本文件(myfile.txt)中的数据
Column1, Column2, Column3
A1,A2,A3
B1,B2,B3
C1,C2,C3
答案 0 :(得分:0)
就这样做:
curl -X DELETE http://Server/sites/eTMFDev/_vti_bin/ListData.svc/Facilities([1-100])
[1-100]
逐个表示1到100。