deleting directorys after renaming

Here's written how to create a new action:
Actions

As you said, you need the action type "Format value" with the field _DIRECTORY
And as format string something like %artist%-%album%