@Override
public void delete(Structure st, User user) throws DotSecurityException, DotDataException, DotStateException {
// check for write permissions
PermissionAPI perAPI=APILocator.getPermissionAPI();
if(!perAPI.doesUserHavePermission(st, PermissionAPI.PERMISSION_WRITE, user))
throw new DotSecurityException("User doesn't have permission to delete the structure");
// checking if there is containers using this structure
List<Container> containers=APILocator.getContainerAPI().findContainersForStructure(st.getInode());
Map<String, String> containersInUse = new HashMap<String, String>();