Folders Resource

The folders resource has all the field the bodis api returns, with some additional functionality.

Delete

When you get a folder from the api, you can call the delete function to delete that folder. This method calls Bodis::deleteFolder() behind the scenes.

1/* In this example, lets assume we want to delete the first folder */
2$response = Bodis::listFolders();
3
4/* grab the first domain */
5$folder = $response['data'][0];
6
7/* call the delete method */
8$folder->delete();