directory model get and destroy