Is it possible to read, write, delete OS files with PL/pgSQL?

Can I run OS commands?

I've seen some examples that you can copy files like CSV but can you read/write/delete OS files? Can you execute OS commands?