0

This question already has an answer here:

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?

marked as duplicate by Gautam Sheth, Gaurravs, moe, Mohamed El-Qassas MVP Jan 31 '18 at 6:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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()
1

instead of delete command, use recycle:

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

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