{"id":20534007,"url":"https://github.com/anicolaspp/maprdb-cleaner","last_synced_at":"2025-10-07T13:05:56.943Z","repository":{"id":95258013,"uuid":"160940932","full_name":"anicolaspp/maprdb-cleaner","owner":"anicolaspp","description":"A small tool to clean MapR-DB based on queries","archived":false,"fork":false,"pushed_at":"2020-09-29T15:42:49.000Z","size":20752,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T20:40:43.377Z","etag":null,"topics":["datab","java","mapr","mapr-db","scala","tools"],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anicolaspp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-08T13:14:21.000Z","updated_at":"2023-03-21T23:56:02.000Z","dependencies_parsed_at":"2023-03-13T16:52:36.253Z","dependency_job_id":null,"html_url":"https://github.com/anicolaspp/maprdb-cleaner","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicolaspp%2Fmaprdb-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicolaspp%2Fmaprdb-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicolaspp%2Fmaprdb-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicolaspp%2Fmaprdb-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anicolaspp","download_url":"https://codeload.github.com/anicolaspp/maprdb-cleaner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837276,"owners_count":21169373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datab","java","mapr","mapr-db","scala","tools"],"created_at":"2024-11-16T00:24:48.697Z","updated_at":"2025-10-07T13:05:51.907Z","avatar_url":"https://github.com/anicolaspp.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# maprdb-cleaner\nA small tool to clean MapR-DB based on queries\n\n\n### Installation\n\n```bash\nbrew install https://raw.githubusercontent.com/anicolaspp/maprdb-cleaner/master/maprdb-cleaner.rb\n```\n\n`maprdbcls` requires `java 1.8+`.\n\n\n### Usage\n\n- Deletes document with `_id` equals to `-1016518206699135554`.\n\n```bash\nmaprdbcls -t /user/mapr/tables/rnd -q '{\"$where\": {\"$eq\": {\"_id\": \"-1016518206699135554\"}}}'\n```\n\n- Deletes all documents.\n\n```bash\nmaprdbcls -t /user/mapr/tables/rnd --all\n```\n\n- Deletes all documents using id `custom_id_field`.\n\n```bash\nmaprdbcls -t /user/mapr/tables/rnd --all --id custom_id_field \n```\n\n- Delete first 20 users which `age` is less than `10`.\n\n```bash\nmaprdbcls -t /user/mapr/tables/users --query '{\"$where\": {\"$lt\": {\"age\": 10}}, \"$limit\": 20}'\n```\n \n`maprdbcls` executes `maprdbcls-1.0.0.jar` passsing the class path `/opt/mapr/lib/*`, so `MapR` client should \nbe installed in this path (defaults). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanicolaspp%2Fmaprdb-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanicolaspp%2Fmaprdb-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanicolaspp%2Fmaprdb-cleaner/lists"}