# datasette-remove-database
[](https://pypi.org/project/datasette-remove-database/)
[](https://github.com/datasette/datasette-remove-database/releases)
[](https://github.com/datasette/datasette-remove-database/actions/workflows/test.yml)
[](https://github.com/datasette/datasette-remove-database/blob/main/LICENSE)
Remove a database from Datasette
## Installation
Install this plugin in the same environment as Datasette.
```bash
datasette install datasette-remove-database
```
## Usage
Users with the `remove-database` permission will see a new menu item on the database page that allows them to remove the database.
By default databases that are removed from Datasette will still be available on disk.
To also delete the file from disk, add this configuration:
```yaml
plugins:
datasette-remove-database:
delete: true
```
## Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd datasette-remove-database
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```
To run the tests:
```bash
python -m pytest
```
Raw data
{
"_id": null,
"home_page": null,
"name": "datasette-remove-database",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Simon Willison",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/c5/5d/2dcea28586463cca1d405bf864a27b31c2e9dbe3a3902970735e8e9633f0/datasette_remove_database-0.1a0.tar.gz",
"platform": null,
"description": "# datasette-remove-database\n\n[](https://pypi.org/project/datasette-remove-database/)\n[](https://github.com/datasette/datasette-remove-database/releases)\n[](https://github.com/datasette/datasette-remove-database/actions/workflows/test.yml)\n[](https://github.com/datasette/datasette-remove-database/blob/main/LICENSE)\n\nRemove a database from Datasette\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n```bash\ndatasette install datasette-remove-database\n```\n## Usage\n\nUsers with the `remove-database` permission will see a new menu item on the database page that allows them to remove the database.\n\nBy default databases that are removed from Datasette will still be available on disk.\n\nTo also delete the file from disk, add this configuration:\n```yaml\nplugins:\n datasette-remove-database:\n delete: true\n```\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n```bash\ncd datasette-remove-database\npython -m venv venv\nsource venv/bin/activate\n```\nNow install the dependencies and test dependencies:\n```bash\npip install -e '.[test]'\n```\nTo run the tests:\n```bash\npython -m pytest\n```\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Remove a database from Datasette",
"version": "0.1a0",
"project_urls": {
"CI": "https://github.com/datasette/datasette-remove-database/actions",
"Changelog": "https://github.com/datasette/datasette-remove-database/releases",
"Homepage": "https://github.com/datasette/datasette-remove-database",
"Issues": "https://github.com/datasette/datasette-remove-database/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "663d0c82e4f56e563ba051abc6bfd3e07fd72d15eac51eea4ec6bc2cfe56fc65",
"md5": "e9c4425ff612779a2ef5d990efd1a7b5",
"sha256": "a686048526c1ac2d1037a041a81793cf2722684156c6150739abfceccdaf0e98"
},
"downloads": -1,
"filename": "datasette_remove_database-0.1a0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e9c4425ff612779a2ef5d990efd1a7b5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 3313,
"upload_time": "2025-02-12T18:34:59",
"upload_time_iso_8601": "2025-02-12T18:34:59.602379Z",
"url": "https://files.pythonhosted.org/packages/66/3d/0c82e4f56e563ba051abc6bfd3e07fd72d15eac51eea4ec6bc2cfe56fc65/datasette_remove_database-0.1a0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "c55d2dcea28586463cca1d405bf864a27b31c2e9dbe3a3902970735e8e9633f0",
"md5": "e075f06ead843cf584843daebf5687ec",
"sha256": "e88985d9347f48d67c557f905ac9141632b0d210963d6cd13bda86fb38c5e420"
},
"downloads": -1,
"filename": "datasette_remove_database-0.1a0.tar.gz",
"has_sig": false,
"md5_digest": "e075f06ead843cf584843daebf5687ec",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 4077,
"upload_time": "2025-02-12T18:35:01",
"upload_time_iso_8601": "2025-02-12T18:35:01.914079Z",
"url": "https://files.pythonhosted.org/packages/c5/5d/2dcea28586463cca1d405bf864a27b31c2e9dbe3a3902970735e8e9633f0/datasette_remove_database-0.1a0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-12 18:35:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "datasette",
"github_project": "datasette-remove-database",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "datasette-remove-database"
}