Move files and folders to parent dir and delete original dir

I'm looking to create a script that moves all files and folders from a directory to the parent directory and then deletes the child directory. So if it looks like this:

/folder1/folder2/folder3
/folder1/folder2/file1
/folder1/folder2/file2
/folder1/folder2/file3

the result of the script will be

/folder1/folder3
/folder1/file1
/folder1/file2
/folder1/file3

Thank you,

So you didn't like these existing solutions?

What would you need to get changed?

This probably has what you want: Quick buttons for directory organisation