@rpc4django.rpcmethod(
    name='configuration.gs.rules.delete',
    signature=['String', 'String'],
    login_required=satnet_settings.JRPC_LOGIN_REQUIRED
)
def remove_rule(groundstation_id, rule_id):
    rule_models.AvailabilityRule.objects.get(
        pk=rule_id,
        groundstation=segment_models.GroundStation.objects.get(
            identifier=groundstation_id
        )
    ).delete()
    return True
Uploads the file using a non-resumable strategy.
dataset/ETHPy150Open satnet-project/server/services/configuration/jrpc/views/rules.py/remove_rule--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/copy_helper.py/_UploadFileToObjectNonResumable