Database created issue via API

I am creating the database using hestiacp API.
I am passing the database name as admin_testDB and it is added as admin_admin_testDB into the panel.
In my code, it is mandatory to pass the db name as admin_testDB.
Please help.

You need to pass testDB we add the user name by default

when I deleting any database using the API it deletes all the database.
please help.

please provide some assistance on this.

If you want assistance you should provide info.

What command via API are you using to delete the database?

Maybe you are using v-delete-databases instead of v-delete-database

2 Likes

this issue was solved yesterday.
Yes you are right, I was using v-delete-databases instead of v-delete-database.
Please update your API guide, it is hard to understand for the new user.

It is literally there:
Source

delete user databases

Options: USER

Examples:

v-delete-databases admin

This function deletes all user databases.