Q:

Thing to check if you have permissions to directory

I'm writting an python program and now I'm working at exceptions.
while True:
    try:
        os.makedirs("{}\\test".format(dest))
    except PermissionError:
        print("Make sure that you have access to specified path")
        print("Try again specify your path: ", end='')
        dest = input()
        continue
    break

It is working but later I need to delete that folder.
What is the better way to do it?

A:

Don't.
It is almost never worth verifying that you have permissions to perform an operation that your program requires. For one thing, permissions are not the only possible reason for failure. A delete may also fail because of a file lock by another program, for instance. Unless you have a very good reason to do otherwise, it is both more efficient and more reliable to just write your code to try the operation and then abort on failure:
import shutil

try:
    shutil.rmtree(path_to_remove) # Recursively deletes directory and files inside it
except Exception as ex:
    print('Failed to delete directory, manual clean up may be required: {}'.format(path_to_remove))
    sys.exit(1)

Other concerns about your code

Use os.path.join to concatenate file paths: os.makedirs(os.path.join(dest, test)). This will use the appropriate directory separator for the operating system.
Why are you looping on failure? In real world programs, simply aborting the entire operation is simpler and usually makes for a better user experience.
Are you sure you aren't looking for the tempfile library? It allows you to spit out a unique directory to the operating system's standard temporary location:
import tempfile

with tempfile.TemporaryDirectory() as tmpdir:
    some_function_that_creates_several_files(tmpdir)
    for f in os.walk(tmpdir):
         # do something with each file
# tmpdir automatically deleted when context manager exits

# Or if you really only need the file
with tempfile.TemporaryFile() as tmpfile:
    tmpfile.write('my data')
    some_function_that_needs_a_file(tmpfile)
# tmpfile automatically deleted when context manager exits

