async function deleteItem (client, type, itemName) {
  await client.click(`.session-current .file-list.${type} .sftp-item[title="${itemName}"]`)
  await delay(400)
  await client.keyboard.press('Delete')
  await delay(400)
  await client.keyboard.press('Enter')
  await delay(2000)
}
Deletes an item (file or folder) from the specified type of file list

@param {Object} client - The Playwright client
@param {string} type - The type of file list ('local' or 'remote')
@param {string} itemName - The name of the item to delete