Illegal syntax on using NTDSUTIL to remove TAPI Microsoft Directory

I was trying to demote an old DC through DCPROMO when I got the message pop up "This domain controller holds the last replica of the following application directory partitions:
DC=MSTAPI,DC=yourdomain,DC=com"

I am getting an error when trying to remove a domain through NTDSUTIL.  I am following the MS article KB 282272 and when i get to the "To remove the application directory partition replica, type remove nc replica ApplicationDirectoryPartitionDomainController" step, i get an illegal syntax when i type the listed naming context.

I type remove nc replica DC=TAPI3Directory,DC=MyLocalDomain,DC=com then i get the syntax error 80070057.
Any help would be greatly appreciated.
infranetsupportAsked:
Who is Participating?
 
TasmantConnect With a Mentor Commented:
try to launch cmd, then
ntdsutil
metadata cleanup
connections
connect to server myserver.MyLocalDomain.com
quit
select operation target
list namings contexts
select naming context x      (x is number)
q
remove selected Naming Context
q
0
 
infranetsupportAuthor Commented:
no
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.