Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Stackland
  • What's new
  • Installation
    • All tutorials
    • Installing Stackland on Yandex BareMetal
    • Installing Stackland on Yandex BareMetal via PXE
    • Installing Stackland on Yandex Cloud VMs
    • Setting up external access to a pod in a cluster
    • Verifying signatures for custom images
    • All guides
        • Creating a PostgreSQL cluster
        • Updating cluster settings
        • Creating a user
        • Updating a user
        • Deleting a user
        • Create database
        • Update database
        • Deleting a database
        • Performance diagnostics
        • Create a backup
        • Recovering a cluster
        • Deleting a cluster
    • Projects
    • Resource model
    • Scaling a cluster
    • Licensing
  • Access management
  • Pricing policy
  • Diagnostics and troubleshooting
  1. Step-by-step guides
  2. Databases and analytics
  3. Managed Service for PostgreSQL
  4. Deleting a user

Deleting a PostgreSQL user

Written by
Yandex Cloud
Updated at July 24, 2026
View in Markdown

If you have a PostgreSQL user in your cluster, you can delete it.

Using the CLIUsing the CLI

  1. Find the name of the resource in the list of project users: kubectl get PostgresqlRole -n <project_name>.
  2. Delete the resource: kubectl delete PostgresqlRole <resource_name> -n <project_name>.

Once deleted, the role can no longer connect to PostgreSQL or use any granted permissions. If the Kubernetes Secret containing the user password is associated with the PostgresqlRole resource through ownerReferences, it is automatically deleted together with the resource. If the Secret was created separately, delete it using the kubectl delete Secret <sectet_name> -n <project_name> command.

Was the article helpful?

Previous
Updating a user
Next
Create database
© 2026 Direct Cursus Technology L.L.C.