Hi @D U Maheswara Rao ,
<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<Delete xmlns="https://schemas.microsoft.com/analysisservices/2003/engine" IgnoreFailures="true">
<Object>
<DatabaseID>DBName</DatabaseID>
</Object>
</Delete>
</Batch>
Maybe this should work better. Kindly check and let me know how it goes.
-----------
Please consider hitting Accept Answer
button. Accepted answers help community as well.