空のフォルダを削除する「RemoveDirectory」関数(kernel32.dll)があります。
参照サイト: MSDN Library Japan
http://msdn.microsoft.com/library/ja/default.asp?url=/library/ja/jpfileio/html/_win32_removedirectory.asp
以下のソースコードは、指定した空フォルダを削除するサンプルです。
#include "hspext.as"
#uselib "kernel32.dll"
#cfunc RemoveDirectory "RemoveDirectoryA" str
	sdim path, 260
	selfolder path, "削除したい空フォルダを選択してください"
	if ( stat = 0 ) {
		// フォルダを削除
		ret=RemoveDirectory( path )
		if ( ret ) { mes path+" を削除しました"}
		else       { mes path+" の削除を失敗"  }
	}
stop