code: def tablespace_remove(name, user=None, host=None, port=None,
                        maintenance_db=None, password=None, runas=None):
      '''
      Removes a tablespace from the Postgres server.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' postgres.tablespace_remove tsname
  
      .. versionadded:: 2015.8.0
      '''
      query = 'DROP TABLESPACE "{0}"'.format(name)
      ret = _psql_prepare_and_run(['-c', query],
                                  user=user,
                                  host=host,
                                  port=port,
                                  runas=runas,
                                  maintenance_db=maintenance_db,
                                  password=password)
      return ret['retcode'] == f tablespace_remove(name, user=None, host=None, port=None,
                        maintenance_db=None, password=None, runas=None):
      '''
      Removes a tablespace from the Postgres server.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' postgres.tablespace_remove tsname
  
      .. versionadded:: 2015.8.0
      '''
      query = 'DROP TABLESPACE "{0}"'.format(name)
      ret = _psql_prepare_and_run(['-c', query],
                                  user=user,
                                  host=host,
                                  port=port,
                                  runas=runas,
                                  maintenance_db=maintenance_db,
                                  password=password)
      return ret['retcode'] == 0
docs: Removes a tablespace from the Postgres server.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' postgres.tablespace_remove tsname
  
      .. versionadded:: 2015.8.0