How to drop (delete) postgresql database ?

in terminal:

sudo -i -u postgres

psql

drop database dbname;

Advertisements

How to delete files and folders with ssh in linux terminal

To delete a whole folder and its content recursively, you can use:

“rm -rf foldername/”

To delete a file:

“rm file.txt”

To delete files start with specific chars:

“rm file**”

“rm file*.txt”

To delete folders starting with specific chars:

“rm -rf 2013**”;

This command will delete every folder starts with 2013