code: public function removeMedia($id, $hardDelete = false)
          {
              $parameters = [
              'query' => ['hardDelete' => $hardDelete],
              'body' => json_encode([], JSON_UNESCAPED_UNICODE),
              'headers' => [],
          ];
  
              $result = $this->delete('v1/media/' . $id . '', $parameters);
              $result = new MediaResponse($result);
  
              return $result;
          }
docs: Delete a Media.
  
  Deleting a Media will set it's status to removed but will retain all data and enable restoration of the Media, much like the trash bin of your operating system. To permanetly remove a Media, use the "hardDelete" flag.
  
  @param  int           $id         the Media identifier
  @param  bool          $hardDelete Prevent restoration of the Media..
  @return MediaResponse