Skip to content

Deleteindex

snoop.data.management.commands.deleteindex #

Delete elasticsearch index.

Classes#

Command #

Delete elasticsearch index.

Methods#
handle(self, *args, **options) #

Runs snoop.data.indexing.delete_index

Source code in snoop/data/management/commands/deleteindex.py
def handle(self, *args, **options):
    """Runs [snoop.data.indexing.delete_index][]"""

    logging_for_management_command(options['verbosity'])
    indexing.delete_index()