question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Delete db functionality

See original GitHub issue

At the moment it is not possible, using pyArango, to actually drop an ArangoDB database. Is there a specific reason for this?

I have written a script to successfully clean a database (drop all graphs and collections) using pyArango functionalities, but it doesn’t really solve the issue. By the way I could draft a pull request to integrate this last functionality into the database class (a drop_all_collections method?)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
LukeMathWalkercommented, Dec 11, 2017

Hi @tariqdaouda, I just sent a pull request to add a dropAllCollections method to the database class. #86 I’ll try to work on the deleteDatabase method during the week.

Bests

1reaction
arkanmgergescommented, Oct 11, 2020

I was reading the code, for now in order to delete the database I did:

connection = Connection(
            arangoURL='localhost',
            username='userdb',
            password='pass1234'
        )
url = f'{connection.getURL()}/database/{dbName}'
connection.session.delete(url)

And it worked for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL - DROP or DELETE Database - Tutorialspoint
The SQL DROP DATABASE statement is used to drop an existing database in SQL schema. Syntax. The basic syntax of DROP DATABASE statement...
Read more >
SQL DROP DATABASE Statement - W3Schools
The DROP DATABASE statement is used to drop an existing SQL database. ... Deleting a database will result in loss of complete information...
Read more >
SQL Server DROP DATABASE Explained By Practical Examples
In this tutorial, you will learn how to delete a database in a SQL Server instance using the DROP DATABASE statement and SQL...
Read more >
Deleting a DB instance - Amazon Relational Database Service
Deleting a DB instance · In the navigation pane, choose Databases, and then choose the DB instance that you want to delete. ·...
Read more >
IMS V13 - DELETE DB command - IBM
To delete a HALDB master database, a /DBRECOVERY command must be issued. The /DBRECOVERY command removes this IMS subsystem's knowledge of the HALDB...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found