[ Windows 11 ] كيفية إصلاح خطأ "الدليل غير فارغ" على Windows

Yahia

Yahia

Administrative
طاقم الإدارة
مــدير عـــام
11 يوليو 2022
688
4
51
28
Egypt
هل يعرض Microsoft Windows الخطأ "الدليل ليس فارغًا" عند محاولة حذف مجلد؟ قد يكون المجلد الخاص بك مؤمنًا ، أو قد لا يكون لديك الإذن المطلوب لإزالة المجلد. يمكنك اتباع بعض الطرق السهلة لإصلاح هذه المشكلة وحذف مجلدك بنجاح.

بعض الأسباب التي قد تجعلك غير قادر على إزالة المجلد الخاص بك هي أن File Explorer يعاني من خلل بسيط ، أو أن القرص به قطاع تالف ، أو ليس لديك إذن لإزالة المجلد ، أو أن ملفات نظام Windows تالفة.

File explorer 1

أعد تشغيل مستكشف الملفات


عندما تحصل على خطأ "الدليل ليس فارغًا" ، فإن الإصلاح السهل الذي يمكنك تطبيقه لإصلاح مشكلتك هو إعادة تشغيل File Explorer. يؤدي القيام بذلك إلى حل أي مشاكل بسيطة تتعلق بأداة مدير الملفات ، مما يسمح لك بحذف العناصر الخاصة بك دون أي مشاكل .

  1. انقر بزر الماوس الأيمن فوق شريط مهام Windows واختر إدارة المهام .
  2. انقر بزر الماوس الأيمن فوق مستكشف Windows في القائمة وحدد إعادة التشغيل .
Rectory is not empty error on windows 2 compressed
  1. حاول حذف المجلد الخاص بك.

إعادة تسمية المجلد الخاص بك لحل المشكلة


إذا كنت لا تزال غير قادر على حذف المجلد الخاص بك ، فامنح المجلد اسمًا جديدًا ، ثم حاول إزالة العنصر. يجب أن تحل هذه الطريقة المشكلة إذا تسبب خلل بسيط في النظام في حدوث المشكلة.

  1. انقر بزر الماوس الأيمن فوق المجلد الذي به مشكلات واختر إعادة تسمية . بدلاً من ذلك ، حدد المجلد واضغط على F2 على لوحة المفاتيح.
Rectory is not empty error on windows 3 compressed
  1. أدخل اسمًا جديدًا لمجلدك واضغط على مفتاح Enter .
  2. انقر بزر الماوس الأيمن فوق المجلد واختر حذف .

Delete the Folder Using the Free Unlocker App


If you still لا يمكن إزالة المجلد الخاص بك , that may be because an app or service on your computer is using that folder. In this case, you can use a free app called Unlocker to إزالة جميع مقابض التأمين من المجلد الخاص بك and delete the folder.

  1. Download and install the free أونلوكر app on your PC.
  2. Launch the app and select Yes in the User Account Control prompt.
  3. Choose your problematic folder on the list and select OK.
  4. Unlocker will display the items locking your folder.
  5. Choose Delete from the drop-down menu and select OK.
Rectory is not empty error on windows 4 compressed

Delete Files Using Command Prompt


Command Prompt is a good alternative to use when you can’t use File Explorer to remove items. You can use a command in this command-line utility to إزالة المجلد الذي اخترته from your storage.

  1. Open the Start menu, find Command Prompt, and select Run as administrator.
  2. Choose Yes in the User Account Control prompt.
  3. Type the following command in CMD and press Enter. Here, replace PATH with the full path to the folder you want to delete.
    rmdir /s “PATH”
Rectory is not empty error on windows 5 compressed

Check Disk for Bad Sectors to Fix the Empty Error


The hard disk where you’ve stored your folder may have a bad sector, preventing you from حذف العناصر الخاصة بك. In this case, use Windows’ built-in CHKDSK command to find and fix bad sectors on your disk.

  1. Open Start, locate Command Prompt, and select Run as administrator.
  2. Choose Yes in the User Account Control prompt.
  3. Type the following command in CMD and press Enter. Here, replace C with the drive where you’ve stored the folder.

    CHKDSK /F C:
Rectory is not empty error on windows 6 compressed
  1. Type Y on your keyboard and press Enter to unmount the drive.
  2. If you see a message asking you to schedule the fix on the next reboot, type Y and press Enter.
  3. Restart Windows, and CHKDSK will kick in to fix any bad items on your disk.

Get Full Permission for Your Folder to Fix Error


You may not have full permission for your folder, which leads to a “The Directory Is Not Empty” error when you try to remove the folder. You can fix that by taking ownership of your chosen folder.

  1. Right-click your folder and choose Properties.
  2. Select the Security tab and choose Advanced.
  3. Select Change next to Owner.
  4. Type your Windows username in the text box, select Check Names, and choose OK.
Rectory is not empty error on windows 7 compressed
  1. Select Apply followed by OK.
  2. Choose OK on the Properties window.
  3. Try to remove your folder.

Run a Full Virus Scan on Your Windows PC


Your Windows PC may have a virus or malware infection, and this item may have gained unauthorized control over your folder, preventing you from deleting your folder. In this case, you can run a full virus check and find and remove all the threats from your PC.

You can use a third-party antivirus program or Windows’ built-in Microsoft Defender Antivirus to تفحص جهاز الكمبيوتر الخاص بك. Here are the steps for running a full scan using the latter.

  1. Open Start, find Windows Security, and launch the app.
  2. Select Virus & threat protection in the app.
  3. Choose Scan options on the following page.
  4. Select Full scan and choose Scan now.
Rectory is not empty error on windows 8 compressed
  1. Wait for your antivirus to finish scanning your PC.

Fix Corrupt Windows Files


Windows’ operating system files may have become corrupt, causing your folder not to delete. In this case, you can use Windows’ built-in SFC (System File Checker) tool to البحث عن جميع الملفات الفاسدة وإصلاحها on your computer.

This tool runs from a Command Prompt window and recognizes and replaces all the faulty system files on your storage.

  1. Open Start, find Command Prompt, and select Run as administrator.
  2. Choose Yes in the User Account Control prompt.
  3. Enter the following on the Command Prompt window and press Enter:

    DISM.exe /Online /Cleanup-image /Restorehealth
Rectory is not empty error on windows 9 compressed
  1. Then, use the following command to fix your corrupt files: sfc /scannow
  2. Try to remove the directory.

Restore Your Windows System


If Windows’ “The Directory Is Not Empty” error still doesn’t go away, roll back any recent changes you may have made to your PC. One way to do this is by باستخدام أداة استعادة النظام المضمنة في Windows.

This tool allows you to roll back your system to a restore point created in the past, which helps fix many issues.

  1. Open Start, find Recovery, and select the item in the search results.
  2. Choose Open System Restore on the following page.
  3. Select Next on the tool’s first screen.
  4. Choose the most recent restore point on the list and select Next.
Ectory is not empty error on windows 10 compressed
  1. Select Finish to begin restoring your PC.

Finally, You Can Delete Your Folder on Your Windows PC


يصبح الأمر محبطًا بسرعة عندما تريد حذف مجلد ولكن لا يمكنك فعل ذلك حيث يستمر Windows في عرض الخطأ "الدليل ليس فارغًا". لحسن الحظ ، هذا الخطأ ليس من الصعب التعامل معه ، ويمكنك استخدام الطرق المذكورة أعلاه لحل المشكلة.

بمجرد اختفاء العنصر الذي يقوم بتأمين المجلد ، ستتمكن من حذف المجلد دون أي مشاكل.
 
التعديل الأخير:
تم اكتشاف مانع الاعلانات

نحن ندرك أن الإعلانات مزعجة!

بالتأكيد، تقوم برامج حظر الإعلانات بعمل رائع في منع الإعلانات، ولكنها تمنع أيضًا الميزات المفيدة لموقعنا على الويب. للحصول على أفضل تجربة للموقع، يرجى تعطيل AdBlocker الخاص بك.

لقد قمت بتعطيل AdBlock    ًلا شكرا