0

I'm using RestAPI to delete item from list. But I dont want to permanently delete it. I want to send it to Recycle Bin. Is there possible with using RestAPI?

0

If you use HTTP command DELETE, it will delete permanently and below is URI struture:

http://<sitecollection>/<site>/_api/web/lists(listid)/items(itemid) 

If you want to delete item and move it to recycle bin, use HTTP command POST and below is URI structure:

http://<sitecollection>/<site>/_api/web/lists(listid)/items(itemid)/recycle()
| improve this answer | |
1

instead of delete command, use recycle:

http://sitecollectionURL/_api/web/lists(listname)/items(itemid)/recycle()

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.