'Deletes a global index in DynamoDB after the table has been created.
Requires a ``global_index_name`` parameter, which should be a simple
string of the name of the global secondary index.
To update ``global_indexes`` information on the ``Table``, you\'ll need
to call ``Table.describe``.
Returns ``True`` on success.
Example::
# To delete a global index
>>> users.delete_global_secondary_index(\'TheIndexNameHere\')
True'

def delete_global_secondary_index(self, global_index_name):

    if global_index_name:
        gsi_data = [{'Delete': {'IndexName': global_index_name}}]
        self.connection.update_table(self.table_name, global_secondary_index_updates=gsi_data)
        return True
    else:
        msg = 'You    need    to    provide    the    global    index    name    to    delete_global_secondary_index    method'
        boto.log.error(msg)
        return False
