/**
  * Deletes a floor plan by file id.
  *
  * @param type $a_file_id the file id of the floor plan
  *
  * @return the result of the manipulation
  */
 public function deleteFloorPlan($a_file_id)
 {
     if (!$this->permission->checkPrivilege(PRIVC::DELETE_FLOORPLANS)) {
         ilUtil::sendFailure($this->lng->txt("rep_robj_xrs_no_permission_for_action"), true);
         $this->ctrl->redirectByClass('ilinfoscreengui', 'showSummary', 'showSummary');
         return false;
     }
     $res = NULL;
     if ($a_file_id) {
         $mediaObj = new ilObjMediaObject($a_file_id);
         $mediaObj->removeAllMediaItems();
         $mediaObj->delete();
         if ($res = $this->ilRoomsharingDatabase->deleteFloorplan($a_file_id)) {
             $this->ilRoomsharingDatabase->deleteFloorplanRoomAssociation($a_file_id);
         }
     }
     return $res;
 }