def catalogue_pre_delete(instance, sender, **kwargs):
 catalogue = get_catalogue()
 catalogue.remove_record(instance.uuid)

def catalogue_pre_delete ( instance , sender , ** kwargs ) : catalogue = get_catalogue ( ) catalogue . remove_record ( instance . uuid )
removes the layer from the catalogue .