.. _ref-drop-user:

=============
``DROP USER``
=============

Drop an existing database user or role.

.. rubric:: Table of contents

.. contents::
   :local:

Synopsis
========

.. code-block:: psql

  DROP USER [ IF EXISTS ] username;

For details, see :ref:`DROP ROLE<ref-drop-role>` as the two statements are
identical.
