{"action":"opened","issue":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/3330","labels_url":"https://api.github.com/repos/influxdb/influxdb/issues/3330/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/3330/comments","events_url":"https://api.github.com/repos/influxdb/influxdb/issues/3330/events","html_url":"https://github.com/influxdb/influxdb/issues/3330","id":95158336,"number":3330,"title":"Drop database delete files from ALL databases","user":{"login":"PierreF","id":359833,"avatar_url":"https://avatars.githubusercontent.com/u/359833?v=3","gravatar_id":"","url":"https://api.github.com/users/PierreF","html_url":"https://github.com/PierreF","followers_url":"https://api.github.com/users/PierreF/followers","following_url":"https://api.github.com/users/PierreF/following{/other_user}","gists_url":"https://api.github.com/users/PierreF/gists{/gist_id}","starred_url":"https://api.github.com/users/PierreF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierreF/subscriptions","organizations_url":"https://api.github.com/users/PierreF/orgs","repos_url":"https://api.github.com/users/PierreF/repos","events_url":"https://api.github.com/users/PierreF/events{/privacy}","received_events_url":"https://api.github.com/users/PierreF/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-15T10:23:13Z","updated_at":"2015-07-15T10:23:13Z","closed_at":null,"body":"On master (56d3add), when I issue a \"DROP DATABASE name\", the folder ~/.influxdb/data is removed, meaning all data files are removed. So after a restart (because influxdb keep some file opened) I've lost all data from all databases.\r\n\r\nVersion 0.9.1 is also affected.\r\n\r\nStep to reproduce:\r\n\r\n* clean ~/.influxdb to start from fresh setup (rm -fr ~/.influxdb)\r\n* Start influxdb\r\n* With UI, issue \"CREATE DATABASE db1\" and \"CREATE DATABASE db2\"\r\n* With UI, write into both database (I'm writting \"cpu_load_short,host=server01,region=us-west value=0.64 1434055562000000000\", from the doc)\r\n* Check with \"SHOW MEASUREMENTS\" that writes succeed.\r\n* Also check that two folder \"db1\" and \"db2\" exists under ~/.influxdb/data\r\n* With UI Issue \"DROP DATABASE db1\"\r\n* Folder ~/.influxdb/data no longer exists ! (so db2's file are deleted from disk)\r\n* Restart influxdb, db2 still exists but is empty (SHOW MEASUREMENTS return nothing)"}}