# إلغاء حذف مواضيع دفعة واحدة

**URL:** https://meta.discourse.org/t/bulk-undelete-topics/196533
**Category:** Support
**Tags:** bulk-actions
**Created:** [9 يوليو 2021، 3:01ص UTC](https://meta.discourse.org/t/bulk-undelete-topics/196533 "2021-07-09T03:01:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rahulMasal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rahulmasal/32/213255_2.png) [@rahulMasal](https://meta.discourse.org/u/rahulMasal)
#### Post date: [9 يوليو 2021، 3:01ص UTC](https://meta.discourse.org/t/bulk-undelete-topics/196533/1 "2021-07-09T03:01:02Z")

</div>

أحتاج إلى مساعدة لاستعادة المنشورات المحذوفة دفعة واحدة!

مثال:  
[https://example.com/u/{user}/deleted-posts](https://example.com/u/%7Buser%7D/deleted-posts)

حتى أتمكن من الوصول إلى جميع المنشورات، لكننا نحتاج إلى استعادتها دفعة واحدة!

---

<div class="post-metadata">

### Author: ![cocococosti](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cocococosti/32/231474_2.png) [@cocococosti](https://meta.discourse.org/u/cocococosti)
#### Post date: [12 يوليو 2021، 11:14م UTC](https://meta.discourse.org/t/bulk-undelete-topics/196533/3 "2021-07-12T23:14:15Z")

</div>

لا توجد عملية جماعية لـ “استعادة الحذف” حسب علمي، لذا ستحتاج إلى كتابة سكريبت لهذا الغرض واستخدام [واجهة برمجة تطبيقات Discourse](https://meta.discourse.org/t/discourse-api-documentation/22706). يمكنك عبر واجهة برمجة التطبيقات القيام بكل ما تفعله في Discourse؛ راجع هذا الموضوع لتتعلم كيفية ذلك: [Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576)

وكما هو موضح في الموضوع، إذا قمت بفحص تبويب الشبكة (في أدوات المطورين في متصفحك)، ستلاحظ أنه عند النقر على زر “عكس الحذف”، يتم إرسال طلب PUT إلى `/posts/<post-id>/recover`.

 ![Screen Shot 2021-07-12 at 19.05.37](https://global.discourse-cdn.com/meta/original/3X/0/0/00d2634113131ca976dfacbb9c4ed46899bfe027.png)

لذلك، إذا كان لديك قائمة بمعرفات المنشورات التي تريد “استعادتها”، فيمكنك القيام بذلك عن طريق إرسال طلبات متتالية إلى نقطة النهاية هذه.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [8 سبتمبر 2023، 2:46م UTC](https://meta.discourse.org/t/bulk-undelete-topics/196533/4 "2023-09-08T14:46:02Z")

</div>

هل حصلت على هذا عبر واجهة برمجة التطبيقات؟

إذا لم يكن الأمر كذلك، فإليك تلميحات حول كيفية القيام بذلك في Rails: [Bulk un-deletion - #3 by pfaffman](https://meta.discourse.org/t/bulk-un-deletion/277861/3?u=pfaffman)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [3 نوفمبر 2023، 2:30م UTC](https://meta.discourse.org/t/bulk-undelete-topics/196533/5 "2023-11-03T14:30:32Z")

</div>


