Remove an Active Directory domain and all its related objects

Hello group!!

Recently, we have decommissioned an Active Directory domain and now what we want to do is remove it from IDM and all of its related objects.

After doing some search in the One Identity documentation, I have found this stored procedure QBM_PDeleteDeep

Can I use this sp, safely passing the xobjectkey of the corresponding AD Domain or I need to follow the tutorial for removing modules?

https://support.oneidentity.com/es-es/technical-documents/identity-manager/8.2/installation-guide/30#:~:text=email%20notification%20system-,Removing%20unnecessary%20modules%20from%20the%20One%20Identity%20Manager%20database,-You%20can%20remove

Kind regards,

David.