Delete an object's key-value pairs from JS File using sed command and display changes within the same file : I am having a configuration file in which key-value pair of an object need to be deleted. Is there any way to delete it by sed command only. My sample file is given below:

    define({
    name: 'ABC',
    defaultApp: 'abc',
    plugin: 'plugin',
    loadOverride: 'load.json',
    components: [
        {
            path: 'upm'
        },
        {
            path: 'ech'
        },
        {
            path: 'hb'
        },
        {
            path: 'st'
        },
        {
            path: 'fo'
        },
        {
            path: 'cm'
        },
        {
            path: 'si'
        }
    ] });

Expected Output:

    define({
    name: 'ABC',
    defaultApp: 'abc',
    plugin: 'plugin',
    loadOverride: 'load.json',
    components: [
        {
            path: 'hb'
        },
        {
            path: 'fo'
        },
        {
            path: 'cm'
        }
    ] });

Currently, I am removing line by line but if there's any way removing it with direct command.

Thanks..