def delete_permission(pid: str=None, **extra):
    """
    DynamoDB Integration:
    ---

    if not pid:
        raise KeyError("PID argument is required.")

    return permission_table.delete_item(Key={"pid": {"S": pid}})
    """
    if not pid:
        raise KeyError('PID argument is required.')
    return {'success': True}
