To remove the installed RavenDB package, you need its name.
ravendb, you can use
dpkg --list to confirm it.
RavenDB can be removed with or without purging the data stored in it and its settings.
Remove RavenDB and Leave its Data and Settings Intact
To remove RavenDB and leave its settings and data intact, use:
sudo apt-get remove <package name>
sudo apt-get remove ravendb
Leave Data and Settings Intact
RavenDB after removing it this way will restore its data and settings.
Remove RavenDB Completely
To remove RavenDB completely, purging its data and settings, use:
sudo dpkg -P <package name>
sudo dpkg -P ravendb
Purge Data and Settings
Running this command requires no confirmation, and will remove your data and settings irrevocably.