text: import * as dynamoDbLib from "./libs/dynamodb-lib";
  import { success, failure } from "./libs/response-lib";
  
  export async function main(event, context) {
    var currentTime = new Date();
    const params = {
      TableName: process.env.tableName,
      // 'Key' defines the partition key and sort key of the item to be removed
      // - 'userId': Identity Pool identity id of the authenticated user
      // - 'noteId': path parameter
      Key: {
        tournamentYear: currentTime.getFullYear(),
        tournamentId: event.pathParameters.id
      }
    };
  
    try {
      const result = await dynamoDbLib.call("delete", params);
      return success({ status: true });
    } catch (e) {
      return failure({ status: false });
    }
  }
  