I have used the command initdb to create a database cluster:
sudo su postgres -c '/opt/local/lib/postgresql83/bin/initdb -D /opt/local/var/db/postgresql83/defaultdb'
If I want to delete this database cluster, can I simply remove the folder defaultdb? Or is there some command I should use?
Yes, If you want to delete the database cluster you just created just remove the data directory
/opt/local/var/db/postgresql83/defaultdb.By the way, if the PG server is running, shut it down before.