public function remove($model, $version) {
		$operations = Configure::read('FileStorage.imageSizes.' . $model . '.' . $version);

		if (empty($operations)) {
			$this->out(__d('file_storage', 'Invalid table or version.'));
			$this->_stop();
		}

		try {
			$this->_loop('remove', $model, [$version => $operations]);
		} catch (Exception $e) {
			$this->out($e->getMessage());
			$this->_stop();
		}
	}
public function remove($model, $version) {
		$operations = Configure::read('FileStorage.imageSizes.' . $model . '.' . $version);

		if (empty($operations)) {
			$this->out(__d('file_storage', 'Invalid table or version.'));
			$this->_stop();
		}

		try {
			$this->_loop('remove', $model, [$version => $operations]);
		} catch (Exception $e) {
			$this->out($e->getMessage());
			$this->_stop();
		}
	}
public function remove ( $ model , $ version ) { $ operations = Configure :: read ( 'FileStorage.imageSizes.' . $ model . '.' . $ version ) ; if ( empty ( $ operations ) ) { $ this -> out ( __d ( 'file_storage' , 'Invalid table or version.' ) ) ; $ this -> _stop ( ) ; } try { $ this -> _loop ( 'remove' , $ model , [ $ version => $ operations ] ) ; } catch ( Exception $ e ) { $ this -> out ( $ e -> getMessage ( ) ) ; $ this -> _stop ( ) ; } }
Remove a given image version.

@param string $model
@param string $version
@return void
Remove a given image version .