ionic-img-cache.js
function remove(src) {
      var defer = $q.defer();

      _checkImgCacheReady()
        .then(function() {
          ImgCache.isCached(src, function(path, success) {
            ImgCache.removeFile(src, function() {
              defer.resolve();
            }, defer.reject);
          }, defer.reject);
        })
        .catch(defer.reject);

      return defer.promise;
    }
function remove(src) {
      var defer = $q.defer();

      _checkImgCacheReady()
        .then(function() {
          ImgCache.isCached(src, function(path, success) {
            ImgCache.removeFile(src, function() {
              defer.resolve();
            }, defer.reject);
          }, defer.reject);
        })
        .catch(defer.reject);

      return defer.promise;
    }
function remove ( src ) { var defer = $q . defer ( ) ; _checkImgCacheReady ( ) . then ( function ( ) { ImgCache . isCached ( src , function ( path , success ) { ImgCache . removeFile ( src , function ( ) { defer . resolve ( ) ; } , defer . reject ) ; } , defer . reject ) ; } ) . catch ( defer . reject ) ; return defer . promise ; }
Removes file from local cache if it present.
@param {string} src - image source url.
Removes file from local cache if it present .