Use the API for folder deletion