ERROR_DS_CANT_DELETE - 8398 (0x20CE)

The requested delete operation could not be performed.

Updated: Feb 21, 2026

Technical Meaning

The ERROR_DS_CANT_DELETE error code indicates that a requested delete operation could not be performed. This error is commonly encountered in directory services operations, particularly within the Active Directory domain service.

Error Details

This error typically arises when an attempt to delete an object (such as a user account or group) fails due to constraints imposed by the system or the security context under which the operation was attempted. The specific reasons for this failure can vary widely and are not always explicitly documented, making it a generic reference error.

Usage Context

This error is relevant in scenarios where directory services operations are performed, such as managing user accounts, group memberships, or other objects within an Active Directory domain. It may also appear when attempting to delete certain types of files or directories that are protected by system policies or security settings.

Developer Interpretation

When encountering ERROR_DS_CANT_DELETE, developers should consider the following aspects:

  • Object Type: Ensure that the object being deleted is correctly identified and matches the expected type (e.g., user, group, container).
  • Security Context: Verify that the operation is performed with sufficient privileges to delete the specified object.
  • System Constraints: Check for any system-imposed limits or restrictions that might prevent deletion of certain objects.

Related Errors

  • ERROR_DS_OBJECTleanor (8392): Object is a leaf node and has children.
  • ERROR_DS_NO_TREE_DELETE (8401): Cannot delete the root object in a tree.

FAQ

Q: What does ERROR_DS_CANT_DELETE mean?

A: It indicates that an attempted deletion operation could not be completed due to various constraints or security settings.

Q: How can I resolve this error?

A: Review the context of the delete operation, ensure proper privileges are held, and verify that no system-imposed limits are preventing the operation.

Summary

ERROR_DS_CANT_DELETE is a generic error code indicating an inability to perform a requested deletion. Developers should focus on validating object types, security contexts, and system constraints when troubleshooting this issue.